summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-04-23 02:31:50 (UTC)
committer kergoth <kergoth>2003-04-23 02:31:50 (UTC)
commit27af46124e121bcd87b690f9fd5a28e5766b647f (patch) (unidiff)
tree690e9fec0d2fe216ee629c0c699e513e1d5a3758
parent43b2c74f7d32ce9c744e4d79e62a92e0181604c3 (diff)
downloadopie-27af46124e121bcd87b690f9fd5a28e5766b647f.zip
opie-27af46124e121bcd87b690f9fd5a28e5766b647f.tar.gz
opie-27af46124e121bcd87b690f9fd5a28e5766b647f.tar.bz2
Increment qt revision per font split, to ensure upgrades occur.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Vars.make2
-rwxr-xr-xmkipks2
2 files changed, 2 insertions, 2 deletions
diff --git a/Vars.make b/Vars.make
index b1cdb28..82421e5 100644
--- a/Vars.make
+++ b/Vars.make
@@ -1,85 +1,85 @@
1ifndef QTDIR 1ifndef QTDIR
2$(error QTDIR not set) 2$(error QTDIR not set)
3endif 3endif
4 4
5prefix=/opt/QtPalmtop 5prefix=/opt/QtPalmtop
6 6
7ifeq ($(OPIEDIR),) 7ifeq ($(OPIEDIR),)
8 export OPIEDIR:=$(TOPDIR) 8 export OPIEDIR:=$(TOPDIR)
9endif 9endif
10ifeq ($(IPK_DIR),) 10ifeq ($(IPK_DIR),)
11 export IPK_DIR:=$(OPIEDIR) 11 export IPK_DIR:=$(OPIEDIR)
12endif 12endif
13 13
14ifneq ($(wildcard $(TOPDIR)/.config),) 14ifneq ($(wildcard $(TOPDIR)/.config),)
15 include $(TOPDIR)/.config 15 include $(TOPDIR)/.config
16endif 16endif
17 17
18export QMAKE:=$(OPIEDIR)/qmake/qmake 18export QMAKE:=$(OPIEDIR)/qmake/qmake
19export QMAKESPECSDIR=$(OPIEDIR)/mkspecs 19export QMAKESPECSDIR=$(OPIEDIR)/mkspecs
20 20
21ifeq ($(QPE_VERSION),) 21ifeq ($(QPE_VERSION),)
22 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 22 VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
23 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) 23 VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h))
24 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) 24 VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h))
25 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) 25 QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT)
26 26
27 ifeq ($(QPE_VERSION),..) 27 ifeq ($(QPE_VERSION),..)
28 QPE_VERSION=0.9.3 28 QPE_VERSION=0.9.3
29 endif 29 endif
30endif 30endif
31export QPE_VERSION 31export QPE_VERSION
32 32
33SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) 33SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h))
34ifeq ($(VERSION_CVS),) 34ifeq ($(VERSION_CVS),)
35 VERSION_CVS:=$(shell date +%Y%m%d) 35 VERSION_CVS:=$(shell date +%Y%m%d)
36endif 36endif
37ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) 37ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),)
38 SUB_VERSION:=$(VERSION_CVS) 38 SUB_VERSION:=$(VERSION_CVS)
39endif 39endif
40export SUB_VERSION 40export SUB_VERSION
41 41
42ifeq ($(QTE_REVISION),) 42ifeq ($(QTE_REVISION),)
43 QTE_REVISION=4 43 QTE_REVISION=5
44endif 44endif
45export QTE_REVISION 45export QTE_REVISION
46 46
47export DEB_VERSION=2.0 47export DEB_VERSION=2.0
48 48
49ifeq ($(QTE_BASEVERSION),) 49ifeq ($(QTE_BASEVERSION),)
50 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) 50 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),)
51 QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') 51 QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;')
52 else 52 else
53 QTE_BASEVERSION=2.3.5 53 QTE_BASEVERSION=2.3.5
54 endif 54 endif
55endif 55endif
56export QTE_BASEVERSION 56export QTE_BASEVERSION
57 57
58ifeq ($(QTE_VERSION),) 58ifeq ($(QTE_VERSION),)
59 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) 59 ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),)
60 QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') 60 QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;')
61 else 61 else
62 QTE_VERSION=2.3.5 62 QTE_VERSION=2.3.5
63 endif 63 endif
64endif 64endif
65export QTE_VERSION 65export QTE_VERSION
66 66
67export PATH:=$(OPIEDIR)/scripts:$(PATH) 67export PATH:=$(OPIEDIR)/scripts:$(PATH)
68export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) 68export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE))
69 69
70ifdef CONFIG_OPTIMIZATIONS 70ifdef CONFIG_OPTIMIZATIONS
71export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) 71export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS))
72export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) 72export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE))
73endif 73endif
74 74
75ifeq ($(STRIP),) 75ifeq ($(STRIP),)
76 ifneq ($(CONFIG_TARGET_X86),) 76 ifneq ($(CONFIG_TARGET_X86),)
77 STRIP=strip 77 STRIP=strip
78 endif 78 endif
79 ifneq ($(CONFIG_TARGET_IPAQ),) 79 ifneq ($(CONFIG_TARGET_IPAQ),)
80 STRIP=arm-linux-strip 80 STRIP=arm-linux-strip
81 endif 81 endif
82 ifneq ($(CONFIG_TARGET_SHARP),) 82 ifneq ($(CONFIG_TARGET_SHARP),)
83 STRIP=arm-linux-strip 83 STRIP=arm-linux-strip
84 endif 84 endif
85endif 85endif
diff --git a/mkipks b/mkipks
index 53ef8f5..ec39dcb 100755
--- a/mkipks
+++ b/mkipks
@@ -1,117 +1,117 @@
1#!/bin/sh 1#!/bin/sh
2 2
3if [ -z "$QTE_BASEVERSION" ] 3if [ -z "$QTE_BASEVERSION" ]
4then 4then
5 if [ -e $QTDIR/include/qglobal.h ] 5 if [ -e $QTDIR/include/qglobal.h ]
6 then 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,;'` 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 8 else
9 QTE_BASEVERSION=2.3.4 9 QTE_BASEVERSION=2.3.4
10 fi 10 fi
11fi 11fi
12if [ -z "$QTE_VERSION" ] 12if [ -z "$QTE_VERSION" ]
13then 13then
14 if [ -e $QTDIR/include/qglobal.h ] 14 if [ -e $QTDIR/include/qglobal.h ]
15 then 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,;'` 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 17 else
18 QTE_VERSION=2.3.4 18 QTE_VERSION=2.3.4
19 fi 19 fi
20fi 20fi
21[ -z "$QTE_REVISION" ] && QTE_REVISION=4 21[ -z "$QTE_REVISION" ] && QTE_REVISION=5
22DEB_VERSION=2.0 22DEB_VERSION=2.0
23 23
24# Have to do this here, since CVS can't store symlinks 24# Have to do this here, since CVS can't store symlinks
25 25
26mkdir -p $OPIEDIR/etc/rcS.d 26mkdir -p $OPIEDIR/etc/rcS.d
27ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 27ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
28 28
29VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 29VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
30VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 30VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
31VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 31VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
32SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 32SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
33if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 33if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
34then 34then
35 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" 35 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
36 SUB_VERSION=$VERSION_CVS 36 SUB_VERSION=$VERSION_CVS
37else 37else
38 VERSION_CVS="" 38 VERSION_CVS=""
39fi 39fi
40 40
41QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 41QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
42 42
43ARCH=arm 43ARCH=arm
44STRIP=arm-linux-strip 44STRIP=arm-linux-strip
45STRIP_FILES="*ARM*not stripped" 45STRIP_FILES="*ARM*not stripped"
46 46
47TDIR=/tmp/ipk$$ 47TDIR=/tmp/ipk$$
48DATADIR=$TDIR 48DATADIR=$TDIR
49CTRLDIR=$TDIR/CONTROL 49CTRLDIR=$TDIR/CONTROL
50 50
51IMAGEDIR= 51IMAGEDIR=
52VERB= 52VERB=
53LIST= 53LIST=
54RPM= 54RPM=
55 55
56while [ $# -ne 0 ] 56while [ $# -ne 0 ]
57do 57do
58 case "$1" in 58 case "$1" in
59 -v) 59 -v)
60 VERB=1 60 VERB=1
61 echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" 61 echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS"
62 ;; -l) 62 ;; -l)
63 LIST=1 63 LIST=1
64 ;; -i) 64 ;; -i)
65 shift 65 shift
66 IMAGEDIR=$1 66 IMAGEDIR=$1
67 DATADIR=$IMAGEDIR 67 DATADIR=$IMAGEDIR
68 mkdir -p $IMAGEDIR 68 mkdir -p $IMAGEDIR
69 ;; -classic) 69 ;; -classic)
70 classicopts=-c 70 classicopts=-c
71 ;; -rpm) 71 ;; -rpm)
72 if [ "$OPIEDIR" != "/opt/Qtopia" ] 72 if [ "$OPIEDIR" != "/opt/Qtopia" ]
73 then 73 then
74 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' 74 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.'
75 sleep 1 75 sleep 1
76 #exit 1 76 #exit 1
77 fi 77 fi
78 RPM=1 78 RPM=1
79 ;; -arch) 79 ;; -arch)
80 shift 80 shift
81 ARCH=$1 81 ARCH=$1
82 STRIP= 82 STRIP=
83 STRIP_FILES= 83 STRIP_FILES=
84 ;; /*) 84 ;; /*)
85 FILES="$FILES $1" 85 FILES="$FILES $1"
86 ;; *) 86 ;; *)
87 FILES="$FILES $PWD/$1" 87 FILES="$FILES $PWD/$1"
88 esac 88 esac
89 shift 89 shift
90done 90done
91 91
92if [ -z "$FILES" ] 92if [ -z "$FILES" ]
93then 93then
94 FILES=`find $OPIEDIR -name "*.control" -print` 94 FILES=`find $OPIEDIR -name "*.control" -print`
95fi 95fi
96 96
97RDIR=$PWD 97RDIR=$PWD
98ORIGDIR=`pwd` 98ORIGDIR=`pwd`
99cd $OPIEDIR 99cd $OPIEDIR
100 100
101for i in $FILES 101for i in $FILES
102do 102do
103 rm -rf $TDIR 103 rm -rf $TDIR
104 104
105 mkdir -p $DATADIR 105 mkdir -p $DATADIR
106 mkdir -p $CTRLDIR 106 mkdir -p $CTRLDIR
107 107
108 packagename=${i##*/}; packagename=${packagename%.control} 108 packagename=${i##*/}; packagename=${packagename%.control}
109 version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') 109 version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"')
110 depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') 110 depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"')
111 files=$(eval echo $(sed -n -e "s/^Files://p" $i)) 111 files=$(eval echo $(sed -n -e "s/^Files://p" $i))
112 arch=$(eval echo $(sed -n -e "s/^Arch://p" $i)) 112 arch=$(eval echo $(sed -n -e "s/^Arch://p" $i))
113 section=$(sed -n -e "s/^Section: *//p" $i) 113 section=$(sed -n -e "s/^Section: *//p" $i)
114 provides=$(sed -n -e "s/^Provides: *//p" $i) 114 provides=$(sed -n -e "s/^Provides: *//p" $i)
115 conflicts=$(sed -n -e "s/^Conflicts: *//p" $i) 115 conflicts=$(sed -n -e "s/^Conflicts: *//p" $i)
116 license=$(sed -n -e "s/^License: *//p" $i) 116 license=$(sed -n -e "s/^License: *//p" $i)
117 summary=$(sed -n -e "s/^Description: *//p" $i) 117 summary=$(sed -n -e "s/^Description: *//p" $i)