author | kergoth <kergoth> | 2003-04-23 05:37:14 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-23 05:37:14 (UTC) |
commit | 2b7ee2f7df2f79bc016dd8185e314a3f5df1b07e (patch) (unidiff) | |
tree | 6846f743352243d86fa88fd85f86d2c3dbc2975c /qt/qte234-for-opie091-fontdir.patch | |
parent | 27af46124e121bcd87b690f9fd5a28e5766b647f (diff) | |
download | opie-2b7ee2f7df2f79bc016dd8185e314a3f5df1b07e.zip opie-2b7ee2f7df2f79bc016dd8185e314a3f5df1b07e.tar.gz opie-2b7ee2f7df2f79bc016dd8185e314a3f5df1b07e.tar.bz2 |
Update fontdir tool to default to /opt/QtPalmtop, and update postinsts on the font packages to source /etc/profile prior to attempting to execute update-qtfontdir, which isnt necessarily in the path at the time of execution.
Diffstat (limited to 'qt/qte234-for-opie091-fontdir.patch') (more/less context) (ignore whitespace changes)
-rw-r--r-- | qt/qte234-for-opie091-fontdir.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/qte234-for-opie091-fontdir.patch b/qt/qte234-for-opie091-fontdir.patch index a765d44..3b3daf4 100644 --- a/qt/qte234-for-opie091-fontdir.patch +++ b/qt/qte234-for-opie091-fontdir.patch | |||
@@ -28,25 +28,25 @@ | |||
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 | +} |
35 | + | 35 | + |
36 | +if [ -z "$1" ]; then | 36 | +if [ -z "$1" ]; then |
37 | + if [ -n "$QTDIR" ]; then | 37 | + if [ -n "$QTDIR" ]; then |
38 | + fontdir=$QTDIR/lib/fonts | 38 | + fontdir=$QTDIR/lib/fonts |
39 | + else | 39 | + else |
40 | + usage | 40 | + fontdir=/opt/QtPalmtop/lib/fonts |
41 | + fi | 41 | + fi |
42 | +else | 42 | +else |
43 | + fontdir=$1 | 43 | + fontdir=$1 |
44 | +fi | 44 | +fi |
45 | + | 45 | + |
46 | +if ! [ -d $fontdir ]; then | 46 | +if ! [ -d $fontdir ]; then |
47 | + echo Error: $fontdir not a directory | 47 | + echo Error: $fontdir not a directory |
48 | + exit 1 | 48 | + exit 1 |
49 | +fi | 49 | +fi |
50 | + | 50 | + |
51 | +if [ -e $fontdir/fontdir ]; then | 51 | +if [ -e $fontdir/fontdir ]; then |
52 | + cat $fontdir/fontdir | grep -v '\.qpf' > $fontdir/fontdir.new | 52 | + cat $fontdir/fontdir | grep -v '\.qpf' > $fontdir/fontdir.new |