summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-04-22 16:34:09 (UTC)
committer kergoth <kergoth>2003-04-22 16:34:09 (UTC)
commitea98ad77b5919ab1f4bedcd1b5fb0ab367cd92cf (patch) (unidiff)
tree4fb7e9782f4d284b4bb3b96226e9c28173951c22
parent91bef5f1e3c76d32d15be55a020fa1df3d525a50 (diff)
downloadopie-ea98ad77b5919ab1f4bedcd1b5fb0ab367cd92cf.zip
opie-ea98ad77b5919ab1f4bedcd1b5fb0ab367cd92cf.tar.gz
opie-ea98ad77b5919ab1f4bedcd1b5fb0ab367cd92cf.tar.bz2
-p1 -> -p0
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--qt/qte234-for-opie091-fontdir.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/qte234-for-opie091-fontdir.patch b/qt/qte234-for-opie091-fontdir.patch
index 4db7df2..a765d44 100644
--- a/qt/qte234-for-opie091-fontdir.patch
+++ b/qt/qte234-for-opie091-fontdir.patch
@@ -1,34 +1,34 @@
1 --- /dev/null2003-01-17 15:37:44.000000000 -0600 1 --- /dev/null2003-01-17 15:37:44.000000000 -0600
2 +++ qt-2.3.5/bin/update-qtfontdir2003-04-22 00:37:07.000000000 -0500 2 +++ bin/update-qtfontdir2003-04-22 00:37:07.000000000 -0500
3@@ -0,0 +1,62 @@ 3@@ -0,0 +1,62 @@
4+#!/bin/sh 4+#!/bin/sh
5+ 5+
6+usage() 6+usage()
7+{ 7+{
8+ echo "usage: $0 [font directory, defaults to QTDIR/lib/fonts]" 8+ echo "usage: $0 [font directory, defaults to QTDIR/lib/fonts]"
9+ exit 1 9+ exit 1
10+} 10+}
11+ 11+
12+setVar() 12+setVar()
13+{ 13+{
14+ eval "$1='$2'" 14+ eval "$1='$2'"
15+} 15+}
16+ 16+
17+getVar() 17+getVar()
18+{ 18+{
19+ eval "echo \$$1" 19+ eval "echo \$$1"
20+} 20+}
21+ 21+
22+handleQPF() 22+handleQPF()
23+{ 23+{
24+ base=`basename $1` 24+ base=`basename $1`
25+ family=`echo $base|cut -d_ -f1` 25+ family=`echo $base|cut -d_ -f1`
26+ pt=`echo $base|cut -d_ -f2` 26+ pt=`echo $base|cut -d_ -f2`
27+ weight=`echo $base|cut -d_ -f3|sed -e 's,i$,,'` 27+ weight=`echo $base|cut -d_ -f3|sed -e 's,i$,,'`
28+ if (echo $base|cut -d_ -f3|grep -q 'i$'); then 28+ if (echo $base|cut -d_ -f3|grep -q 'i$'); then
29+ italic="y" 29+ italic="y"
30+ else 30+ else
31+ italic="n" 31+ italic="n"
32+ fi 32+ fi
33+ echo "$family $base.qpf QPF $italic $weight $pt u" 33+ echo "$family $base.qpf QPF $italic $weight $pt u"
34+} 34+}