summaryrefslogtreecommitdiff
authorallenforsythe <allenforsythe>2003-05-14 18:04:01 (UTC)
committer allenforsythe <allenforsythe>2003-05-14 18:04:01 (UTC)
commit9c5671a47c3f4d3510dc18d70914f6d7df752a25 (patch) (side-by-side diff)
treefe52ea0ed4b22cb143c62715345921322581a97d
parentdabb32d52954874ffd8c79de3a82923dde5b27af (diff)
downloadopie-9c5671a47c3f4d3510dc18d70914f6d7df752a25.zip
opie-9c5671a47c3f4d3510dc18d70914f6d7df752a25.tar.gz
opie-9c5671a47c3f4d3510dc18d70914f6d7df752a25.tar.bz2
Initial revision
Diffstat (more/less context) (show 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 @@
+QashMoney - Budget Software for the Sharp Zaurus
+
+README
+
+Welcome to the latest version of QashMoney! This app is designed to make your
+budgeting fast, inuitive and easy.
+
+This file lists all the important files in the qashmoney CVS directory and how
+to make the IPK file that goes on the Zaurus. When you checkout the
+qashmoney module from CVS, it will create a directory on your hard drive called
+qashmoney. These instructions assume you are in the directory.
+
+The first thing you need to do is have all the necessary cross-compile software
+and Qtopia installed on your system. I assume you have already done this since
+you are downloading CVS, but if not, go to:
+
+http://docs.zaurus.com
+
+and download the RPMS that you need for development.
+
+You also must have sqlite installed on your system to successfully compile
+QashMoney. Go to:
+
+http://www.sqlite.org
+
+to download this progam. The SQLite library has already been compiled for the
+IPK and is in the 'install' directory. So there is no need to compile SQLite
+for ARM but you can if you want. There are instructions for that on the
+website.
+
+After that, set the correct environment variables for the package you
+are developing.Two scripts in the qashmoney are used for that purpose: x86.sh
+andarm.shIf you are buidling for x86 type:
+
+source x86.sh
+
+and press enter. To make binaries that run on the Zaurus, type:
+
+source arm.sh
+
+Next, construct the makefile by typing:
+
+tmake -o Makefile qashmoney.pro
+
+tmake is Trolltech's program for constructing a typical GNU Makefile from the
+project file (qashmoney.pro for this application). If you get an "error: tmake
+command not found", you either don't have all the correct RPMS installed or your
+environment variables are not correctly set. If all is well type:
+
+make
+
+and the program should be constructed and you will be left with a qashmoney
+binary in this directory. If you compiled for x86, you can see the application
+by using the Qt Virtual Frame Buffer which emulates the Qtopia environment on
+your computer. First, copy all the files from the databasefiles directory within the
+qashmoney directory. Otherwise, the program will not function.
+
+To run QashMoney in the Qtopia Virtual Frame Buffer, type:
+
+qvfb &
+./qashmoney -qws
+
+and QashMoney should appear in the frambuffer. You can use and test qashmoney
+here as you would on the Zaurus.
+
+If you compile the binary file for the Zaurus, another script in this directory
+will come in handy. To automagically make the IPK file, type:
+
+su
+./make_ipk
+
+You need to be the root user to set the ownership of the binary and other
+files correctly. The IPK file will appear in the qashmoney directory. Now put
+this file onto the Zaurus and install!
+
+Two other scripts in the directory may be of use. The make_x86 script cleans
+the directory and makes the x86 qashmoney binary automatically. The make_arm
+scripts makes the ARM binary. So you should really only have to type three
+commands the make the IPK file:
+
+./make_arm
+su
+./make_ipk
+
+I hope the program can be useful. If you have any questions or comments, please
+contact me at qashmoneyman@attbi.com
+
+Thanks!
+
+Allen
+
+Disclaimer: Altough I've tried to make this application tight and well
+functioning, it comes with absolutely no warranty and I will not be liable for
+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 @@
+#!/bin/sh
+
+# This renames all the old zmoney files if they are present
+if [ -f $HOME/zmoneyaccounts.db ]
+ then
+ mv $HOME/zmoneyaccounts.db $HOME/qmaccounts.db
+ fi
+if [ -f $HOME/zmoneytransactions.db ]
+ then
+ mv $HOME/zmoneytransactions.db $HOME/qmtransactions.db
+ fi
+if [ -f $HOME/zmoneymemory.db ]
+ then
+ mv $HOME/zmoneymemory.db $HOME/qmmemory.db
+ fi
+if [ -f $HOME/zmoneypreferences.db ]
+ then
+ mv $HOME/zmoneypreferences.db $HOME/qmpreferences.db
+ fi
+if [ -f $HOME/zmoneytransfers.db ]
+ then
+ mv $HOME/zmoneytransfers.db $HOME/qmtransfers.db
+ fi
+
+# This section makes a new directory in the $HOME/Applications
+# directory so QashMoney files will be automatically backed up.
+# Links from the $HOME directory are made to the actual files because
+# SQLite seems to want only a filename rather than a directory
+
+# Make the Applications directory if its not there
+if [ ! -d $HOME/Applications ]
+ then
+ mkdir $HOME/Applications
+ fi
+
+# Make the qashmoney directory
+if [ ! -d $HOME/Applications/qashmoney ]
+ then
+ mkdir $HOME/Applications/qashmoney
+ fi
+
+# Move all the database files to the temporary directory
+# if they are present and are not symbolic links
+if [ -f $HOME/qmbudgets.db ] && [ ! -L $HOME/qmbudgets.db ]
+ then
+ mv $HOME/qmbudgets.db /tmp
+ fi
+
+if [ -f $HOME/qmaccounts.db ] && [ ! -L $HOME/qmaccounts.db ]
+ then
+ mv $HOME/qmaccounts.db /tmp
+ fi
+
+if [ -f $HOME/qmmemory.db ] && [ ! -L $HOME/qmmemory.db ]
+ then
+ mv $HOME/qmmemory.db /tmp
+ fi
+
+if [ -f $HOME/qmpreferences.db ] && [ ! -L $HOME/qmpreferences.db ]
+ then
+ mv $HOME/qmpreferences.db /tmp
+ fi
+
+if [ -f $HOME/qmtransactions.db ] && [ ! -L $HOME/qmtransactions.db ]
+ then
+ mv $HOME/qmtransactions.db /tmp
+ fi
+
+if [ -f $HOME/qmtransfers.db ] && [ ! -L $HOME/qmtransfers.db ]
+ then
+ mv $HOME/qmtransfers.db /tmp
+ fi
+
+# Move all db files from /tmp directory to their final resting place
+if [ ! -f $HOME/Applications/qashmoney/qmbudgets.db ]
+ then
+ mv /tmp/qmbudgets.db $HOME/Applications/qashmoney
+ fi
+if [ ! -f $HOME/Applications/qashmoney/qmaccounts.db ]
+ then
+ mv /tmp/qmaccounts.db $HOME/Applications/qashmoney
+ fi
+if [ ! -f $HOME/Applications/qashmoney/qmmemory.db ]
+ then
+ mv /tmp/qmmemory.db $HOME/Applications/qashmoney
+ fi
+if [ ! -f $HOME/Applications/qashmoney/qmpreferences.db ]
+ then
+ mv /tmp/qmpreferences.db $HOME/Applications/qashmoney
+ fi
+if [ ! -f $HOME/Applications/qashmoney/qmtransactions.db ]
+ then
+ mv /tmp/qmtransactions.db $HOME/Applications/qashmoney
+ fi
+if [ ! -f $HOME/Applications/qashmoney/qmtransfers.db ]
+ then
+ mv /tmp/qmtransfers.db $HOME/Applications/qashmoney
+ fi
+
+# If by chance there are any db files or links in the $HOME directory
+#delete them
+rm -rf $HOME/qmbudgets.db
+rm -rf $HOME/qmaccounts.db
+rm -rf $HOME/qmmemory.db
+rm -rf $HOME/qmpreferences.db
+rm -rf $HOME/qmtransactions.db
+rm -rf $HOME/qmtransfers.db
+
+# Create symbolic links for the $HOME to the $HOME/Applications/qashmoney
+# directory
+ln -s $HOME/Applications/qashmoney/qmbudgets.db $HOME/qmbudgets.db
+ln -s $HOME/Applications/qashmoney/qmaccounts.db $HOME/qmaccounts.db
+ln -s $HOME/Applications/qashmoney/qmmemory.db $HOME/qmmemory.db
+ln -s $HOME/Applications/qashmoney/qmpreferences.db $HOME/qmpreferences.db
+ln -s $HOME/Applications/qashmoney/qmtransactions.db $HOME/qmtransactions.db
+ln -s $HOME/Applications/qashmoney/qmtransfers.db $HOME/qmtransfers.db
+
+# Remove all .db files that remain in the /tmp directory
+rm -rf /tmp/qmbudgets.db
+rm -rf /tmp/qmaccounts.db
+rm -rf /tmp/qmmemory.db
+rm -rf /tmp/qmpreferences.db
+rm -rf /tmp/qmtransactions.db
+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 @@
+#/bin/sh
+
+# If by some small chance a tmp directory is not present
+# create it
+if [ ! -d /tmp ]
+then
+ mkdir /tmp
+fi