From de7a0a45d872450fc96614c51a1ad2670d01be5a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 7 Mar 2010 16:18:12 +0100 Subject: [PATCH] archive.sh: Create a gzipped archive. --- archive.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.45.2