-rwxr-xr-x | scripts/mkmakefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/mkmakefile b/scripts/mkmakefile new file mode 100755 index 0000000..1d21a2e --- a/dev/null +++ b/scripts/mkmakefile | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ $# -lt 1 ] | ||
4 | then | ||
5 | echo "Usage: mkmakefile <dir> ..." | ||
6 | exit 1 | ||
7 | fi | ||
8 | |||
9 | while [ $# -gt 0 ] | ||
10 | do | ||
11 | DIR=`echo $1 | sed -e 's/\/$//'` | ||
12 | echo "Making $DIR/Makefile.in..." | ||
13 | H=`pwd` | ||
14 | cd $DIR | ||
15 | FILE=`basename $DIR` | ||
16 | TMAKEPATH=$QTDIR/tmake:$TMAKEPATH tmake CONFIG+=embedded -t $H/qt/tmake/propagate.t -o Makefile.in $FILE.pro | ||
17 | echo "Done." | ||
18 | shift | ||
19 | cd - | ||
20 | done | ||
21 | |||
22 | exit 0 | ||
23 | |||