forked from mia/Aegisub
3ed84ba70d
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.
22 lines
398 B
Bash
Executable file
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
|