--- /dev/null
+#!/bin/sh
+
+# Create an archive of my configuration file which can be uploaded on a
+# server.
+#
+# Usage: ./archive.sh
+
+
+git_clone() {
+ git clone "$1" "$2" > /dev/null
+ cwd=`pwd`
+ cd "$2" && git remote rm origin && git gc && cd "$cwd"
+}
+
+git_clone . tmp/dotfiles
+for name in browser shell vcs vim x11; do
+ echo cloning $name to tmp/
+ git_clone $name tmp/dotfiles/$name
+done
+
+echo creating dotfiles.tar
+tar cf tmp/dotfiles.tar -C tmp dotfiles
+echo moving dotfiles.tar to .
+mv tmp/dotfiles.tar .
+
+rm -rf tmp