2 # tar/untar dotfiles for aix. the aix boxen at $WORK do not have git
7 ARCHIVES
=".home.tar .etc.tar"
8 DOTFILES
=".dotfiles.tar"
12 printf "Usage: $0 tar|untar archive"
15 if [ $NUMARGS -gt 2 ]; then
21 if [ $NUMARGS -eq 1 ]; then
22 # tar up stuff. These should correspond to the git archive in .mrconfig
23 for archive
in $ARCHIVES
27 printf "Couldn't $1 $archive\n" ; exit 1
30 gtar cfv
$DOTFILES $ARCHIVES
34 gtar cfv .home.
tar bin
37 gtar cfv
${2} --exclude=known
--exclude=.git
${2%.tar}
45 for archive
in $ARCHIVES
49 printf "Couldn't untar $archive\n" ;exit 1