Aegisub/aegisub/packages/distfile/distfile.sh
Thomas Goyne 3ed84ba70d Update distdir generation
The list of files to include was out of date and only included files
for dependencies which were actually enabled, and the script was
FreeBSD-specific.

Originally committed to SVN as r6298.
2012-01-14 18:46:43 +00:00

22 lines
398 B
Bash
Executable file

#!/bin/sh
SRCDIR=`pwd`
MAKE=$1
DISTDIR=$2
rm -rf $DISTDIR
if ! test -d src; then
echo "Please run this from the parent directory.";
exit 1;
fi
$MAKE distfiles \
| grep -E ^/ \
| sed "s|${SRCDIR}/||" \
| xargs -I {} ./install-sh -m 0644 "{}" "$DISTDIR/{}"
for i in `find . -name Makefile -or -name wscript`; do
./install-sh -m 0644 "$i" "${DISTDIR}/$i"
done
chmod +x ${DISTDIR}/configure