1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh distname=$1 distarc="$distname.tar.gz" echo "Making $distarc" for f in `cat MANIFEST` do d=`dirname $f` mkdir -p "$distname/$d" echo "Adding $f" cp $f "$distname/$f" done tar zcf $distarc $distname rm -rf $distname