-
Notifications
You must be signed in to change notification settings - Fork 5
/
propagate
executable file
·44 lines (36 loc) · 887 Bytes
/
propagate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
MAKEFILES=`find . -name Makefile.in -print | sort`;
if cmp "$QTDIR/LICENSE" "$PWD/LICENSE" || cmp "$QTDIR/LICENSE" `pwd`/LICENSE || cmp "$QTDIR/LICENSE" "$CWD/LICENSE" 2>/dev/null
then
true
else
echo >&2
echo >&2
echo ' $QTDIR must be set to $PWD ('$PWD')' >&2
echo ' Please read INSTALL' >&2
echo >&2
echo >&2
exit 1
fi
QTDIR='$(QTDIR)'
for a in $MAKEFILES ; do
N=`dirname $a`/Makefile
M=${N}.in
sed -ne '1,/##* BEGIN/ p' < $M > $N
cat >> $N <<EOF
#
# This section was automatically generated from
# `pwd`/Makefile for building on
# ${PLATFORM} on `date`
#
`cat $1`
####### End of automatically generated section
EOF
sed -ne '/##* END/,$ p' < $M >> $N
echo ' created' $N
done
touch variables
echo
echo Qt is now configured for building. Just run make.
echo To reconfigure, run make config.
echo