From a02fee90c36e49c4b8e32eec4a5d5bd2cf26fbe6 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Mon, 10 Jan 2011 21:33:58 +0000 Subject: [PATCH] Add a quick script used for distfile building. I don't see any reason to support a pure makefile solution and make it unnecessarily complex. In the future if anyone feels they may want to use this build system I'll change it otherwise we'll use this for now. Originally committed to SVN as r5164. --- aegisub/packages/distfile/distfile.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 aegisub/packages/distfile/distfile.sh diff --git a/aegisub/packages/distfile/distfile.sh b/aegisub/packages/distfile/distfile.sh new file mode 100755 index 000000000..37fa5743f --- /dev/null +++ b/aegisub/packages/distfile/distfile.sh @@ -0,0 +1,24 @@ +#!/bin/sh +SRCDIR=`pwd` +TMPFILE=`mktemp /tmp/aegisub_dist.XXXXXX` +EXTRA=`find . -name Makefile -or -name wscript` +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 aegisub-pkg/$i; +done + +sh ${TMPFILE} + +#rm ${TMPFILE}