(dist): Implement. The client tarball doesn't work yet.

(TARNAME, VERSION, tarball, acdist, src_distgen, bld_distgen)
(dist-source, dist-client, dist-info, check-version): New.
This commit is contained in:
Markus Armbruster 2006-01-15 20:10:27 +00:00
parent f237a5e278
commit 1991652cfd
3 changed files with 61 additions and 2 deletions

28
src/scripts/tarball Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh -e
if [ $# = 0 ]; then
echo "Usage: $0 NAME (FILE | -C DIR)..."
exit 1
fi
name=$1; shift
# arrange cleanup
trap 'rm -rf "$name"' 0
mkdir -p $name
dir=.
until [ $# = 0 ]; do
if [ "$1" = -C ]; then
dir="$2"
if shift 2; then continue; fi
echo "-C requires an argument" >&2
exit 1
fi
mkdir -p `dirname "$name/$1"`
ln "$dir/$1" "$name/$1"
shift
done
tar -czf $name.tar.gz --owner=0 --group=0 --mode=ug+w,a+rX $name