author | simon <simon> | 2002-11-21 17:48:02 (UTC) |
---|---|---|
committer | simon <simon> | 2002-11-21 17:48:02 (UTC) |
commit | 1c1eabfe924ba0e1be8b3ce1d4d837ac15855f74 (patch) (unidiff) | |
tree | 9fb80eefa41cb049a7063c596b78441c2f8d53fd | |
parent | e7fec78f2acbf7b35687b50edadd5ed819484445 (diff) | |
download | opie-1c1eabfe924ba0e1be8b3ce1d4d837ac15855f74.zip opie-1c1eabfe924ba0e1be8b3ce1d4d837ac15855f74.tar.gz opie-1c1eabfe924ba0e1be8b3ce1d4d837ac15855f74.tar.bz2 |
- ln -s ../../libopie/$generatedHeader $generatedHeader; done )
+ ln -sf ../../libopie/$generatedHeader $generatedHeader; done )
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,129 +84,129 @@ while [ -n "$1" ]; do | |||
84 | ;; | 84 | ;; |
85 | *) | 85 | *) |
86 | HELP=yes;; | 86 | HELP=yes;; |
87 | esac | 87 | esac |
88 | shift | 88 | shift |
89 | done | 89 | done |
90 | 90 | ||
91 | TARGET=configs/$PLATFORM-$SHARING$DEBUG | 91 | TARGET=configs/$PLATFORM-$SHARING$DEBUG |
92 | 92 | ||
93 | if [ '!' -f $TARGET ] | 93 | if [ '!' -f $TARGET ] |
94 | then | 94 | then |
95 | if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ] | 95 | if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ] |
96 | then | 96 | then |
97 | TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG | 97 | TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG |
98 | PLATFORM=linux-$PLATFORM-g++ | 98 | PLATFORM=linux-$PLATFORM-g++ |
99 | else | 99 | else |
100 | echo | 100 | echo |
101 | echo ' The specified platform/compiler not supported: ' $TARGET | 101 | echo ' The specified platform/compiler not supported: ' $TARGET |
102 | echo | 102 | echo |
103 | exit 2 | 103 | exit 2 |
104 | fi | 104 | fi |
105 | fi | 105 | fi |
106 | 106 | ||
107 | # Next, emit a usage message if something failed. | 107 | # Next, emit a usage message if something failed. |
108 | 108 | ||
109 | if [ "$HELP" = "yes" ]; then | 109 | if [ "$HELP" = "yes" ]; then |
110 | cat <<EOF | 110 | cat <<EOF |
111 | Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] | 111 | Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] |
112 | 112 | ||
113 | The defaults (*) are usually acceptable. Here is a short explanation of | 113 | The defaults (*) are usually acceptable. Here is a short explanation of |
114 | each option: | 114 | each option: |
115 | 115 | ||
116 | * -release ........... Compile and link Qt with debugging turned off. | 116 | * -release ........... Compile and link Qt with debugging turned off. |
117 | -debug ............. Compile and link Qt with debugging turned on. | 117 | -debug ............. Compile and link Qt with debugging turned on. |
118 | 118 | ||
119 | * -shared ............ Create and use a shared Qt library (libqt.so) | 119 | * -shared ............ Create and use a shared Qt library (libqt.so) |
120 | -static ............ Create and use a static Qt library (libqt.a) | 120 | -static ............ Create and use a static Qt library (libqt.a) |
121 | 121 | ||
122 | -qt3 ............... Configure for use with Qt 3.x | 122 | -qt3 ............... Configure for use with Qt 3.x |
123 | 123 | ||
124 | -platform target ... The platform you are building on ($PLATFORM) | 124 | -platform target ... The platform you are building on ($PLATFORM) |
125 | EOF | 125 | EOF |
126 | exit 0; | 126 | exit 0; |
127 | fi | 127 | fi |
128 | 128 | ||
129 | CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"` | 129 | CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"` |
130 | 130 | ||
131 | if [ -f library/custom-$CUSTOM.h ] | 131 | if [ -f library/custom-$CUSTOM.h ] |
132 | then | 132 | then |
133 | rm -f library/custom.h | 133 | rm -f library/custom.h |
134 | ln -s custom-$CUSTOM.h library/custom.h | 134 | ln -s custom-$CUSTOM.h library/custom.h |
135 | fi | 135 | fi |
136 | 136 | ||
137 | mkdir -p include/qpe | 137 | mkdir -p include/qpe |
138 | ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) | 138 | ( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) |
139 | mkdir -p include/qtopia | 139 | mkdir -p include/qtopia |
140 | ( cd include/qtopia && rm -f *.h; ln -s ../../library/*.h .; ) | 140 | ( cd include/qtopia && rm -f *.h; ln -s ../../library/*.h .; ) |
141 | mkdir -p include/qtopia/private | 141 | mkdir -p include/qtopia/private |
142 | ( cd include/qtopia/private && rm -f *.h; ln -s ../../../library/backend/*.h .; ) | 142 | ( cd include/qtopia/private && rm -f *.h; ln -s ../../../library/backend/*.h .; ) |
143 | mkdir -p include/opie | 143 | mkdir -p include/opie |
144 | ( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; ) | 144 | ( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; ) |
145 | ( cd include/opie && ln -s ../../libsql/*.h .; ) | 145 | ( cd include/opie && ln -s ../../libsql/*.h .; ) |
146 | ( cd include/opie && ln -s ../../libopie/pim/*.h .; ) | 146 | ( cd include/opie && ln -s ../../libopie/pim/*.h .; ) |
147 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ | 147 | ( cd include/opie; for generatedHeader in `cd ../../libopie; ls *.ui | sed -e "s,\.ui,\.h,g"`; do \ |
148 | ln -s ../../libopie/$generatedHeader $generatedHeader; done ) | 148 | ln -sf ../../libopie/$generatedHeader $generatedHeader; done ) |
149 | 149 | ||
150 | echo Creating makefiles... | 150 | echo Creating makefiles... |
151 | 151 | ||
152 | # Set version for library directly | 152 | # Set version for library directly |
153 | # Version 1.5.0 right now for compat. | 153 | # Version 1.5.0 right now for compat. |
154 | sed -e 's/^\(VERSION.*= \).*/\1'1.5.0.$VERSION_PAT/ <library/library.pro >library/library.pro-v | 154 | sed -e 's/^\(VERSION.*= \).*/\1'1.5.0.$VERSION_PAT/ <library/library.pro >library/library.pro-v |
155 | mv library/library.pro-v library/library.pro | 155 | mv library/library.pro-v library/library.pro |
156 | 156 | ||
157 | if [ "$QT3" = yes ] | 157 | if [ "$QT3" = yes ] |
158 | then | 158 | then |
159 | VCONFIG="CONFIG+=qt3" | 159 | VCONFIG="CONFIG+=qt3" |
160 | else | 160 | else |
161 | VCONFIG="CONFIG+=qt2" | 161 | VCONFIG="CONFIG+=qt2" |
162 | fi | 162 | fi |
163 | 163 | ||
164 | if [ -f $TMAKEPATH/tmake.conf ] | 164 | if [ -f $TMAKEPATH/tmake.conf ] |
165 | then | 165 | then |
166 | # You have tmake. We'll regenerate the file for you... | 166 | # You have tmake. We'll regenerate the file for you... |
167 | echo "Makefiles will be regenerated." | 167 | echo "Makefiles will be regenerated." |
168 | fi | 168 | fi |
169 | 169 | ||
170 | H=`pwd` | 170 | H=`pwd` |
171 | if [ -z "$TOMAKE" ] | 171 | if [ -z "$TOMAKE" ] |
172 | then | 172 | then |
173 | TOMAKE=`make showcomponents` | 173 | TOMAKE=`make showcomponents` |
174 | fi | 174 | fi |
175 | 175 | ||
176 | for a in $TOMAKE ; do | 176 | for a in $TOMAKE ; do |
177 | N=$a/Makefile | 177 | N=$a/Makefile |
178 | M=$a/Makefile.in | 178 | M=$a/Makefile.in |
179 | O=$a/Makefile.add | 179 | O=$a/Makefile.add |
180 | f=`basename $a` | 180 | f=`basename $a` |
181 | 181 | ||
182 | if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ] | 182 | if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ] |
183 | then | 183 | then |
184 | ( cd $a; | 184 | ( cd $a; |
185 | TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \ | 185 | TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \ |
186 | tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \ | 186 | tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \ |
187 | -t $H/qt/tmake/propagate.t $f.pro | | 187 | -t $H/qt/tmake/propagate.t $f.pro | |
188 | sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in; | 188 | sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in; |
189 | ) | 189 | ) |
190 | echo -n "." | 190 | echo -n "." |
191 | #echo Building $N.. | 191 | #echo Building $N.. |
192 | appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | tr -d " \t"` | 192 | appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | tr -d " \t"` |
193 | translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' ` | 193 | translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' ` |
194 | if [ -n "$translation" -a -n "$appname" ] | 194 | if [ -n "$translation" -a -n "$appname" ] |
195 | then | 195 | then |
196 | if [ "$appname" != "$translation" ] | 196 | if [ "$appname" != "$translation" ] |
197 | then | 197 | then |
198 | echo | 198 | echo |
199 | echo "Warning: translation and appname disagree in $a/$f.pro" | 199 | echo "Warning: translation and appname disagree in $a/$f.pro" |
200 | fi | 200 | fi |
201 | fi | 201 | fi |
202 | 202 | ||
203 | fi | 203 | fi |
204 | 204 | ||
205 | cat > $N <<EOF | 205 | cat > $N <<EOF |
206 | ############################################################################# | 206 | ############################################################################# |
207 | # Automatically generated from $M | 207 | # Automatically generated from $M |
208 | # Build options from $1 | 208 | # Build options from $1 |
209 | ############################################################################# | 209 | ############################################################################# |
210 | 210 | ||
211 | EOF | 211 | EOF |
212 | 212 | ||