From: Simon Ruderich Date: Sun, 7 Mar 2010 15:18:12 +0000 (+0100) Subject: archive.sh: Create a gzipped archive. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=de7a0a45d872450fc96614c51a1ad2670d01be5a;p=config%2Fdotfiles.git archive.sh: Create a gzipped archive. --- diff --git a/archive.sh b/archive.sh index 4a205a2..4a6d785 100755 --- a/archive.sh +++ b/archive.sh @@ -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