|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 725 (0x2d5)
Types: TextFile
Names: »make-tarfile«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
└─⟦ca1f037a2⟧ »./bash-1.04.tar.Z«
└─⟦46465a4db⟧
└─⟦this⟧ »bash-1.04/make-tarfile«
#! /bin/sh
# How to make a distribution tarfile.
#
# $1 is the name of the program.
# $2 is the version number.
# Remaining args are files to tar.
PROGRAM=$1
VERSION=$2
shift; shift
if [ "$PROGRAM" = "" -o "$VERSION" = "" ]; then
echo "Usage: make-tarfile <progname> <version> <file ...>"
exit 2;
fi
TARFILE=$PROGRAM.tar
TARDIR=$PROGRAM-$VERSION
rm -rf $TARFILE $TARDIR
mkdir $TARDIR
(cd $TARDIR; for i in $*; do
file=`basename $i`
dir=`echo $i | sed "s/$file\$//" | sed 's@\(.*\)/\$@\1@'`
if [ "$dir" = "" ]; then dir="."; fi
if [ "$dir" != "." ]; then
if [ ! -d "$dir" ]; then mkdir "$dir"; fi
ln -s ../../$i $i; \
else
ln -s ../$i $i
fi
done)
tar -chf $TARFILE $TARDIR
rm -rf $TARDIR
exit 0