little helper script to easy creation of the file list
authorMatthias Braun <matze@braunis.de>
Thu, 14 Feb 2008 09:48:46 +0000 (09:48 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 14 Feb 2008 09:48:46 +0000 (09:48 +0000)
[r17712]

ir/create_filelist.sh [new file with mode: 0755]

diff --git a/ir/create_filelist.sh b/ir/create_filelist.sh
new file mode 100755 (executable)
index 0000000..668d82d
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+# Little helper script used to create the file list for Makefile.am
+# automatically
+
+DIRS="adt ana arch be common config debug external ident ir libcore lower net obstack opt stat tr tv"
+
+echo "libfirm_la_SOURCES = \\" > FILELIST
+for dir in $DIRS; do
+       for f in $dir/*.c; do
+               echo -e "\t$f \\" >> FILELIST
+       done
+done
+
+echo "" >> FILELIST
+echo "EXTRA_DIST = \\" >> FILELIST
+FILES=`find $DIRS -maxdepth 1 -name "*.h" -o -name "*.def" -o -name "*.sh"`
+for f in $FILES; do
+       echo -e "\t$f \\" >> FILELIST
+done
+for f in be/scripts/*.pl; do
+       echo -e "\t$f \\" >> FILELIST
+done