-rwxr-xr-x | scripts/pack | 58 |
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 | ||
7 | system("rm -rf usr-ipaq/lib/qt/*/*"); | ||
8 | system("mkdir -p usr-ipaq/lib/qt/etc/fonts"); | ||
9 | system("mkdir -p usr-ipaq/lib/qt/apps"); | ||
10 | system("mkdir -p usr-ipaq/lib/qt/bin"); | ||
11 | system("mkdir -p usr-ipaq/lib/qt/docs"); | ||
12 | system("mkdir -p usr-ipaq/lib/qt/lib"); | ||
13 | system("mkdir -p usr-ipaq/lib/qt/pics"); | ||
14 | system("mkdir -p usr-ipaq/lib/qt/video"); | ||
15 | |||
16 | # The app | ||
17 | #system("cp single/qpe usr-ipaq/lib/qt/bin/"); | ||
18 | system("cp -r bin usr-ipaq/lib/qt/"); | ||
19 | system("cp -a $QTDIR/lib/libqte.so* usr-ipaq/lib/"); | ||
20 | system("cp -a $QTDIR/lib/libqpe.so* usr-ipaq/lib/"); | ||
21 | |||
22 | # Media | ||
23 | system("cp -r apps usr-ipaq/lib/qt"); | ||
24 | system("cp -a docs usr-ipaq/lib/qt"); | ||
25 | system("cp -r pics usr-ipaq/lib/qt"); | ||
26 | system("cp -r i18n usr-ipaq/lib/qt; rm usr-ipaq/lib/qt/i18n/*/*.po"); | ||
27 | system("cp -r video usr-ipaq/lib/qt"); | ||
28 | system("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 | ||
39 | system("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/"); | ||
47 | system("mkdir -p usr-ipaq/lib/qt/etc/dict/"); | ||
48 | |||
49 | # IM files | ||
50 | system("cp etc/dict/*dawg* usr-ipaq/lib/qt/etc/dict/"); | ||
51 | system("cp -r etc/qimpen usr-ipaq/lib/qt/etc/"); | ||
52 | |||
53 | # Themery | ||
54 | system("cp -r etc/colors usr-ipaq/lib/qt/etc/"); | ||
55 | |||
56 | # Clean | ||
57 | system("find usr-ipaq -name CVS | xargs rm -r"); | ||
58 | system("find usr-ipaq -name '*~' | xargs rm "); | ||