]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
archive.sh: Create a gzipped archive.
authorSimon Ruderich <simon@ruderich.org>
Sun, 7 Mar 2010 15:18:12 +0000 (16:18 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 7 Mar 2010 15:18:12 +0000 (16:18 +0100)
archive.sh

index 4a205a2d8da307f46aa2aadc9a4dd2d89b957059..4a6d785d589d326050625e6b1b2cca52fd542aaa 100755 (executable)
@@ -18,9 +18,10 @@ for name in browser shell vcs vim x11; do
     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 .
+archive=dotfiles.tar.gz
+echo creating $archive
+tar cf tmp/$archive -C tmp -z dotfiles
+echo moving $archive to .
+mv tmp/$archive .
 
 rm -rf tmp