]>
Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - bin/gzball
2 # create tar.gz archives and remove original dirs
3 # usage: gzball [-q] DIR [DIR] ...
7 # be totally quite with -q argument
8 if [ "$1" == "-q" ] ; then
19 $ECHO "$p.tar.gz" # what we're building
20 $TAR "$p.tar.gz" "$p" # create tar.gz archive
21 touch -r "$p" "$p.tar.gz" # update modified time to match original DIR
22 rm -rf "$p" # remove original dir