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