author | kergoth <kergoth> | 2003-01-26 19:46:41 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-26 19:46:41 (UTC) |
commit | f389dd4e3d5ceacb15b5c0b751a618d7586d6c31 (patch) (unidiff) | |
tree | 4409bbfaee1f3467ccebef0d1ebbd20ba949bad0 /mkipks | |
parent | fcc5341e8eaef9586cb7fd2b40a22198de0d196d (diff) | |
download | opie-f389dd4e3d5ceacb15b5c0b751a618d7586d6c31.zip opie-f389dd4e3d5ceacb15b5c0b751a618d7586d6c31.tar.gz opie-f389dd4e3d5ceacb15b5c0b751a618d7586d6c31.tar.bz2 |
Rather hackish, but necessary, bits. mkipks now parses the qglobal header from $QTDIR to obtain both the base qt version and the full version string, thereby letting me use ipkg depends to Depends: libqt2-emb (>= 2.3.4-beta4).
-rwxr-xr-x | mkipks | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,12 +1,28 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | [ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4 | 3 | if [ -z "$QTE_BASEVERSION" ] |
4 | [ -z "$QTE_BASEVERSION" ] && QTE_BASEVERSION=2.3.4 | 4 | then |
5 | if [ -e $QTDIR/include/qglobal.h ] | ||
6 | then | ||
7 | QTE_BASEVERSION=`cat $QTDIR/include/qglobal.h|grep '^#define QT_VERSION'|grep -v STR|sed -e 's,#define QT_VERSION\t*,,;' -e 's,.*\([0-9]\)\([0-9]\)\([0-9]\).*,\1.\2.\3,;'` | ||
8 | else | ||
9 | QTE_BASEVERSION=2.3.4 | ||
10 | fi | ||
11 | fi | ||
12 | if [ -z "$QTE_VERSION" ] | ||
13 | then | ||
14 | if [ -e $QTDIR/include/qglobal.h ] | ||
15 | then | ||
16 | QTE_VERSION=`cat $QTDIR/include/qglobal.h|grep '^#define QT_VERSION_STR'|sed -e 's,#define QT_VERSION_STR\t*,,;' -e 's,.*"\([^"]*\)".*,\1,;'` | ||
17 | else | ||
18 | QTE_VERSION=2.3.4 | ||
19 | fi | ||
20 | fi | ||
5 | [ -z "$QTE_REVISION" ] && QTE_REVISION=3 | 21 | [ -z "$QTE_REVISION" ] && QTE_REVISION=3 |
6 | DEB_VERSION=2.0 | 22 | DEB_VERSION=2.0 |
7 | 23 | ||
8 | # Have to do this here, since CVS can't store symlinks | 24 | # Have to do this here, since CVS can't store symlinks |
9 | 25 | ||
10 | mkdir -p $OPIEDIR/etc/rcS.d | 26 | mkdir -p $OPIEDIR/etc/rcS.d |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash | 27 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
12 | 28 | ||