From: Matthias Braun Date: Thu, 14 Feb 2008 09:48:46 +0000 (+0000) Subject: little helper script to easy creation of the file list X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=3e8eb6185ca2be3f6d951e45509e9bb7c667a03e;p=libfirm little helper script to easy creation of the file list [r17712] --- diff --git a/ir/create_filelist.sh b/ir/create_filelist.sh new file mode 100755 index 000000000..668d82d26 --- /dev/null +++ b/ir/create_filelist.sh @@ -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