author | allenforsythe <allenforsythe> | 2003-05-14 18:04:01 (UTC) |
---|---|---|
committer | allenforsythe <allenforsythe> | 2003-05-14 18:04:01 (UTC) |
commit | 9c5671a47c3f4d3510dc18d70914f6d7df752a25 (patch) (unidiff) | |
tree | fe52ea0ed4b22cb143c62715345921322581a97d | |
parent | dabb32d52954874ffd8c79de3a82923dde5b27af (diff) | |
download | opie-9c5671a47c3f4d3510dc18d70914f6d7df752a25.zip opie-9c5671a47c3f4d3510dc18d70914f6d7df752a25.tar.gz opie-9c5671a47c3f4d3510dc18d70914f6d7df752a25.tar.bz2 |
Initial revision
-rwxr-xr-x | noncore/apps/qashmoney/README | 94 | ||||
-rwxr-xr-x | noncore/apps/qashmoney/install/CONTROL/postinst | 124 | ||||
-rwxr-xr-x | noncore/apps/qashmoney/install/CONTROL/preinst | 8 |
3 files changed, 226 insertions, 0 deletions
diff --git a/noncore/apps/qashmoney/README b/noncore/apps/qashmoney/README new file mode 100755 index 0000000..1888ce6 --- a/dev/null +++ b/noncore/apps/qashmoney/README | |||
@@ -0,0 +1,94 @@ | |||
1 | QashMoney - Budget Software for the Sharp Zaurus | ||
2 | |||
3 | README | ||
4 | |||
5 | Welcome to the latest version of QashMoney! This app is designed to make your | ||
6 | budgeting fast, inuitive and easy. | ||
7 | |||
8 | This file lists all the important files in the qashmoney CVS directory and how | ||
9 | to make the IPK file that goes on the Zaurus. When you checkout the | ||
10 | qashmoney module from CVS, it will create a directory on your hard drive called | ||
11 | qashmoney. These instructions assume you are in the directory. | ||
12 | |||
13 | The first thing you need to do is have all the necessary cross-compile software | ||
14 | and Qtopia installed on your system. I assume you have already done this since | ||
15 | you are downloading CVS, but if not, go to: | ||
16 | |||
17 | http://docs.zaurus.com | ||
18 | |||
19 | and download the RPMS that you need for development. | ||
20 | |||
21 | You also must have sqlite installed on your system to successfully compile | ||
22 | QashMoney. Go to: | ||
23 | |||
24 | http://www.sqlite.org | ||
25 | |||
26 | to download this progam. The SQLite library has already been compiled for the | ||
27 | IPK and is in the 'install' directory. So there is no need to compile SQLite | ||
28 | for ARM but you can if you want. There are instructions for that on the | ||
29 | website. | ||
30 | |||
31 | After that, set the correct environment variables for the package you | ||
32 | are developing.Two scripts in the qashmoney are used for that purpose: x86.sh | ||
33 | andarm.shIf you are buidling for x86 type: | ||
34 | |||
35 | source x86.sh | ||
36 | |||
37 | and press enter. To make binaries that run on the Zaurus, type: | ||
38 | |||
39 | source arm.sh | ||
40 | |||
41 | Next, construct the makefile by typing: | ||
42 | |||
43 | tmake -o Makefile qashmoney.pro | ||
44 | |||
45 | tmake is Trolltech's program for constructing a typical GNU Makefile from the | ||
46 | project file (qashmoney.pro for this application). If you get an "error: tmake | ||
47 | command not found", you either don't have all the correct RPMS installed or your | ||
48 | environment variables are not correctly set. If all is well type: | ||
49 | |||
50 | make | ||
51 | |||
52 | and the program should be constructed and you will be left with a qashmoney | ||
53 | binary in this directory. If you compiled for x86, you can see the application | ||
54 | by using the Qt Virtual Frame Buffer which emulates the Qtopia environment on | ||
55 | your computer. First, copy all the files from the databasefiles directory within the | ||
56 | qashmoney directory. Otherwise, the program will not function. | ||
57 | |||
58 | To run QashMoney in the Qtopia Virtual Frame Buffer, type: | ||
59 | |||
60 | qvfb & | ||
61 | ./qashmoney -qws | ||
62 | |||
63 | and QashMoney should appear in the frambuffer. You can use and test qashmoney | ||
64 | here as you would on the Zaurus. | ||
65 | |||
66 | If you compile the binary file for the Zaurus, another script in this directory | ||
67 | will come in handy. To automagically make the IPK file, type: | ||
68 | |||
69 | su | ||
70 | ./make_ipk | ||
71 | |||
72 | You need to be the root user to set the ownership of the binary and other | ||
73 | files correctly. The IPK file will appear in the qashmoney directory. Now put | ||
74 | this file onto the Zaurus and install! | ||
75 | |||
76 | Two other scripts in the directory may be of use. The make_x86 script cleans | ||
77 | the directory and makes the x86 qashmoney binary automatically. The make_arm | ||
78 | scripts makes the ARM binary. So you should really only have to type three | ||
79 | commands the make the IPK file: | ||
80 | |||
81 | ./make_arm | ||
82 | su | ||
83 | ./make_ipk | ||
84 | |||
85 | I hope the program can be useful. If you have any questions or comments, please | ||
86 | contact me at qashmoneyman@attbi.com | ||
87 | |||
88 | Thanks! | ||
89 | |||
90 | Allen | ||
91 | |||
92 | Disclaimer: Altough I've tried to make this application tight and well | ||
93 | functioning, it comes with absolutely no warranty and I will not be liable for | ||
94 | any damage it may cause. | ||
diff --git a/noncore/apps/qashmoney/install/CONTROL/postinst b/noncore/apps/qashmoney/install/CONTROL/postinst new file mode 100755 index 0000000..034c5ac --- a/dev/null +++ b/noncore/apps/qashmoney/install/CONTROL/postinst | |||
@@ -0,0 +1,124 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # This renames all the old zmoney files if they are present | ||
4 | if [ -f $HOME/zmoneyaccounts.db ] | ||
5 | then | ||
6 | mv $HOME/zmoneyaccounts.db $HOME/qmaccounts.db | ||
7 | fi | ||
8 | if [ -f $HOME/zmoneytransactions.db ] | ||
9 | then | ||
10 | mv $HOME/zmoneytransactions.db $HOME/qmtransactions.db | ||
11 | fi | ||
12 | if [ -f $HOME/zmoneymemory.db ] | ||
13 | then | ||
14 | mv $HOME/zmoneymemory.db $HOME/qmmemory.db | ||
15 | fi | ||
16 | if [ -f $HOME/zmoneypreferences.db ] | ||
17 | then | ||
18 | mv $HOME/zmoneypreferences.db $HOME/qmpreferences.db | ||
19 | fi | ||
20 | if [ -f $HOME/zmoneytransfers.db ] | ||
21 | then | ||
22 | mv $HOME/zmoneytransfers.db $HOME/qmtransfers.db | ||
23 | fi | ||
24 | |||
25 | # This section makes a new directory in the $HOME/Applications | ||
26 | # directory so QashMoney files will be automatically backed up. | ||
27 | # Links from the $HOME directory are made to the actual files because | ||
28 | # SQLite seems to want only a filename rather than a directory | ||
29 | |||
30 | # Make the Applications directory if its not there | ||
31 | if [ ! -d $HOME/Applications ] | ||
32 | then | ||
33 | mkdir $HOME/Applications | ||
34 | fi | ||
35 | |||
36 | # Make the qashmoney directory | ||
37 | if [ ! -d $HOME/Applications/qashmoney ] | ||
38 | then | ||
39 | mkdir $HOME/Applications/qashmoney | ||
40 | fi | ||
41 | |||
42 | # Move all the database files to the temporary directory | ||
43 | # if they are present and are not symbolic links | ||
44 | if [ -f $HOME/qmbudgets.db ] && [ ! -L $HOME/qmbudgets.db ] | ||
45 | then | ||
46 | mv $HOME/qmbudgets.db /tmp | ||
47 | fi | ||
48 | |||
49 | if [ -f $HOME/qmaccounts.db ] && [ ! -L $HOME/qmaccounts.db ] | ||
50 | then | ||
51 | mv $HOME/qmaccounts.db /tmp | ||
52 | fi | ||
53 | |||
54 | if [ -f $HOME/qmmemory.db ] && [ ! -L $HOME/qmmemory.db ] | ||
55 | then | ||
56 | mv $HOME/qmmemory.db /tmp | ||
57 | fi | ||
58 | |||
59 | if [ -f $HOME/qmpreferences.db ] && [ ! -L $HOME/qmpreferences.db ] | ||
60 | then | ||
61 | mv $HOME/qmpreferences.db /tmp | ||
62 | fi | ||
63 | |||
64 | if [ -f $HOME/qmtransactions.db ] && [ ! -L $HOME/qmtransactions.db ] | ||
65 | then | ||
66 | mv $HOME/qmtransactions.db /tmp | ||
67 | fi | ||
68 | |||
69 | if [ -f $HOME/qmtransfers.db ] && [ ! -L $HOME/qmtransfers.db ] | ||
70 | then | ||
71 | mv $HOME/qmtransfers.db /tmp | ||
72 | fi | ||
73 | |||
74 | # Move all db files from /tmp directory to their final resting place | ||
75 | if [ ! -f $HOME/Applications/qashmoney/qmbudgets.db ] | ||
76 | then | ||
77 | mv /tmp/qmbudgets.db $HOME/Applications/qashmoney | ||
78 | fi | ||
79 | if [ ! -f $HOME/Applications/qashmoney/qmaccounts.db ] | ||
80 | then | ||
81 | mv /tmp/qmaccounts.db $HOME/Applications/qashmoney | ||
82 | fi | ||
83 | if [ ! -f $HOME/Applications/qashmoney/qmmemory.db ] | ||
84 | then | ||
85 | mv /tmp/qmmemory.db $HOME/Applications/qashmoney | ||
86 | fi | ||
87 | if [ ! -f $HOME/Applications/qashmoney/qmpreferences.db ] | ||
88 | then | ||
89 | mv /tmp/qmpreferences.db $HOME/Applications/qashmoney | ||
90 | fi | ||
91 | if [ ! -f $HOME/Applications/qashmoney/qmtransactions.db ] | ||
92 | then | ||
93 | mv /tmp/qmtransactions.db $HOME/Applications/qashmoney | ||
94 | fi | ||
95 | if [ ! -f $HOME/Applications/qashmoney/qmtransfers.db ] | ||
96 | then | ||
97 | mv /tmp/qmtransfers.db $HOME/Applications/qashmoney | ||
98 | fi | ||
99 | |||
100 | # If by chance there are any db files or links in the $HOME directory | ||
101 | #delete them | ||
102 | rm -rf $HOME/qmbudgets.db | ||
103 | rm -rf $HOME/qmaccounts.db | ||
104 | rm -rf $HOME/qmmemory.db | ||
105 | rm -rf $HOME/qmpreferences.db | ||
106 | rm -rf $HOME/qmtransactions.db | ||
107 | rm -rf $HOME/qmtransfers.db | ||
108 | |||
109 | # Create symbolic links for the $HOME to the $HOME/Applications/qashmoney | ||
110 | # directory | ||
111 | ln -s $HOME/Applications/qashmoney/qmbudgets.db $HOME/qmbudgets.db | ||
112 | ln -s $HOME/Applications/qashmoney/qmaccounts.db $HOME/qmaccounts.db | ||
113 | ln -s $HOME/Applications/qashmoney/qmmemory.db $HOME/qmmemory.db | ||
114 | ln -s $HOME/Applications/qashmoney/qmpreferences.db $HOME/qmpreferences.db | ||
115 | ln -s $HOME/Applications/qashmoney/qmtransactions.db $HOME/qmtransactions.db | ||
116 | ln -s $HOME/Applications/qashmoney/qmtransfers.db $HOME/qmtransfers.db | ||
117 | |||
118 | # Remove all .db files that remain in the /tmp directory | ||
119 | rm -rf /tmp/qmbudgets.db | ||
120 | rm -rf /tmp/qmaccounts.db | ||
121 | rm -rf /tmp/qmmemory.db | ||
122 | rm -rf /tmp/qmpreferences.db | ||
123 | rm -rf /tmp/qmtransactions.db | ||
124 | rm -rf /tmp/qmtransfers.db | ||
diff --git a/noncore/apps/qashmoney/install/CONTROL/preinst b/noncore/apps/qashmoney/install/CONTROL/preinst new file mode 100755 index 0000000..f812bfc --- a/dev/null +++ b/noncore/apps/qashmoney/install/CONTROL/preinst | |||
@@ -0,0 +1,8 @@ | |||
1 | #/bin/sh | ||
2 | |||
3 | # If by some small chance a tmp directory is not present | ||
4 | # create it | ||
5 | if [ ! -d /tmp ] | ||
6 | then | ||
7 | mkdir /tmp | ||
8 | fi | ||