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;ds=sidebyside;h=de7a0a45d872450fc96614c51a1ad2670d01be5a;hp=c9709be14cb6f88c5c8c41b26c805d0acfd4d45b;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