beifg: Simplify the implementation of be_ifg_foreach_node().
[libfirm] / ir / create_filelist.sh
1 #!/bin/bash
2 #
3 # Little helper script used to create the file list for Makefile.am
4 # automatically
5
6 DIRS="adt ana be common debug ident ir libcore lower lpp obstack opt stat tr tv kaps"
7
8 echo "libfirm_la_SOURCES = \\" > FILELIST
9 for dir in $DIRS; do
10         for f in $dir/*.c; do
11                 echo -e "\t$f \\" >> FILELIST
12         done
13 done
14
15 echo "" >> FILELIST
16 echo "" >> FILELIST
17 echo "EXTRA_DIST = \\" >> FILELIST
18 FILES=$(find $DIRS -maxdepth 1 -name "*.h" -o -name "*.def" -o -name "*.sh" -o -name "*.l" -o -name "*.y")
19 FILES="$FILES $(find ir adt -name "*.inl")"
20 for f in $FILES; do
21         echo -e "\t$f \\" >> FILELIST
22 done
23 for f in be/scripts/*.pl; do
24         echo -e "\t$f \\" >> FILELIST
25 done
26 echo "" >> FILELIST