summaryrefslogtreecommitdiff
path: root/scripts/pack
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /scripts/pack
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
Diffstat (limited to 'scripts/pack') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/pack58
1 files changed, 58 insertions, 0 deletions
diff --git a/scripts/pack b/scripts/pack
new file mode 100755
index 0000000..26a530a
--- a/dev/null
+++ b/scripts/pack
@@ -0,0 +1,58 @@
1#!/usr/bin/perl
2
3$QTDIR=$ENV{QTDIR};
4$base=`pwd`;
5
6# Directory structure
7system("rm -rf usr-ipaq/lib/qt/*/*");
8system("mkdir -p usr-ipaq/lib/qt/etc/fonts");
9system("mkdir -p usr-ipaq/lib/qt/apps");
10system("mkdir -p usr-ipaq/lib/qt/bin");
11system("mkdir -p usr-ipaq/lib/qt/docs");
12system("mkdir -p usr-ipaq/lib/qt/lib");
13system("mkdir -p usr-ipaq/lib/qt/pics");
14system("mkdir -p usr-ipaq/lib/qt/video");
15
16# The app
17#system("cp single/qpe usr-ipaq/lib/qt/bin/");
18system("cp -r bin usr-ipaq/lib/qt/");
19system("cp -a $QTDIR/lib/libqte.so* usr-ipaq/lib/");
20system("cp -a $QTDIR/lib/libqpe.so* usr-ipaq/lib/");
21
22# Media
23system("cp -r apps usr-ipaq/lib/qt");
24system("cp -a docs usr-ipaq/lib/qt");
25system("cp -r pics usr-ipaq/lib/qt");
26system("cp -r i18n usr-ipaq/lib/qt; rm usr-ipaq/lib/qt/i18n/*/*.po");
27system("cp -r video usr-ipaq/lib/qt");
28system("cp -r sounds usr-ipaq/lib/qt");
29
30# This is for future use when a library will need to be included
31# Library
32# system("cd usr-ipaq/lib/qt/lib ; ".
33# "cp -r $QTDIR/lib/libqte.so.2.2 ./ ; ".
34# "ln -s libqte.so.2.2 libqte.so.2 ; ".
35# "ln -s libqte.so.2.2 libqte.so ; ".
36# "cd -");
37
38# Fonts
39system("cp $QTDIR/etc/fonts/fontdir ".
40 "$QTDIR/etc/fonts/helvetica_* ".
41 "$QTDIR/etc/fonts/fixed_* ".
42 "$QTDIR/etc/fonts/micro_* ".
43 "$QTDIR/etc/fonts/smallsmooth_* ".
44 "$QTDIR/etc/fonts/cyberbit_120_50_t10.qpf ".
45 "$QTDIR/etc/fonts/smoothtimes_{170,100}_50*.qpf ".
46 "usr-ipaq/lib/qt/etc/fonts/");
47system("mkdir -p usr-ipaq/lib/qt/etc/dict/");
48
49# IM files
50system("cp etc/dict/*dawg* usr-ipaq/lib/qt/etc/dict/");
51system("cp -r etc/qimpen usr-ipaq/lib/qt/etc/");
52
53# Themery
54system("cp -r etc/colors usr-ipaq/lib/qt/etc/");
55
56# Clean
57system("find usr-ipaq -name CVS | xargs rm -r");
58system("find usr-ipaq -name '*~' | xargs rm ");