2011-01-10 22:33:58 +01:00
|
|
|
#!/bin/sh
|
|
|
|
SRCDIR=`pwd`
|
|
|
|
TMPFILE=`mktemp /tmp/aegisub_dist.XXXXXX`
|
|
|
|
EXTRA=`find . -name Makefile -or -name wscript`
|
2011-02-05 23:23:31 +01:00
|
|
|
distdir?=aegisub-pkg
|
|
|
|
|
2011-01-10 22:33:58 +01:00
|
|
|
rm -rf aegisub-pkg
|
|
|
|
|
|
|
|
if ! test -d src; then
|
|
|
|
echo "Please run this from the parent directory.";
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
gmake distfiles \
|
|
|
|
|egrep ^/ |sed "s|${SRCDIR}/||" \
|
|
|
|
|awk '{print "echo \"aegisub-pkg/"$0"\"\n./install-sh -m 0644 \""$0"\" \"aegisub-pkg/"$0"\""}' \
|
|
|
|
> ${TMPFILE}
|
|
|
|
|
|
|
|
for i in ${EXTRA}; do
|
|
|
|
echo "aegisub-pkg/$i";
|
2011-02-05 23:23:31 +01:00
|
|
|
./install-sh -m 0644 $i ${distdir}/$i;
|
2011-01-10 22:33:58 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
sh ${TMPFILE}
|
|
|
|
|
|
|
|
#rm ${TMPFILE}
|