forked from mia/Aegisub
7508420000
Originally committed to SVN as r5287.
26 lines
531 B
Bash
Executable file
26 lines
531 B
Bash
Executable file
#!/bin/sh
|
|
SRCDIR=`pwd`
|
|
TMPFILE=`mktemp /tmp/aegisub_dist.XXXXXX`
|
|
EXTRA=`find . -name Makefile -or -name wscript`
|
|
distdir?=aegisub-pkg
|
|
|
|
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";
|
|
./install-sh -m 0644 $i ${distdir}/$i;
|
|
done
|
|
|
|
sh ${TMPFILE}
|
|
|
|
#rm ${TMPFILE}
|