summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-02-02 01:38:36 (UTC)
committer kergoth <kergoth>2002-02-02 01:38:36 (UTC)
commitf3def578d169c0a937f418b2d956c73592190cda (patch) (side-by-side diff)
treefa2910ae18976973cfacd182a53c2e8efb25dbf4
parent99e186559aa3fdb21e178082c9466f98037bfd6b (diff)
downloadopie-f3def578d169c0a937f418b2d956c73592190cda.zip
opie-f3def578d169c0a937f418b2d956c73592190cda.tar.gz
opie-f3def578d169c0a937f418b2d956c73592190cda.tar.bz2
*** empty log message ***
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xbin/qpe-reorgfiles93
1 files changed, 93 insertions, 0 deletions
diff --git a/bin/qpe-reorgfiles b/bin/qpe-reorgfiles
new file mode 100755
index 0000000..787f50a
--- a/dev/null
+++ b/bin/qpe-reorgfiles
@@ -0,0 +1,93 @@
+#!/bin/sh
+
+APPS=$HOME/Applications
+DOCS=$HOME/Documents
+
+if [ -d $APPS -a "$1" != "-f" ]
+then
+ echo "You seem to already have a $APPS directory."
+ echo "Assuming it is the QPE Applications directory. Exiting."
+ exit 0
+fi
+
+if [ -d $HOME/Apps ]
+then
+ mv $HOME/Apps $APPS
+else
+ mkdir $APPS
+fi
+
+if [ -f $DOCS/addressbook.xml ]
+then
+ if [ -f $APPS/addressbook/addressbook.xml ]
+ then
+ echo "$DOCS/addressbook.xml conflicts with $APPS/addressbook/addressbook.xml"
+ echo "Moving $DOCS/addressbook.xml to $HOME"
+ mv $DOCS/addressbook.xml $HOME
+ else
+ mkdir $APPS/addressbook
+ mv $DOCS/addressbook.xml $APPS/addressbook
+ fi
+fi
+
+if [ -f $DOCS/datebooksettings.xml ]
+then
+ echo "$DOCS/datebooksettings.xml is obsolete"
+ echo "Please re-set your datebook preferences"
+ rm $DOCS/datebooksettings.xml
+fi
+
+if [ -f $DOCS/datebook.xml ]
+then
+ mkdir $APPS/databook
+ mv $DOCS/datebook.xml $APPS/databook
+fi
+
+if [ -d $DOCS/qtmail ]
+then
+ mv $DOCS/qtmail $APPS/
+fi
+
+if [ -f $DOCS/todo.xml ]
+then
+ if [ -f $APPS/todolist/todolist.xml ]
+ then
+ mv $DOCS/todo.xml $HOME
+ echo "$DOCS/todo.xml is superceded by $APPS/todolist/todolist.xml"
+ echo "$DOCS/todo.xml has been moved to $HOME"
+ else
+ echo "NOTE: $DOCS/todo.xml is obsolete. It will move to $APPS/todolist/todolist.xml"
+ echo "when next you run the latest ToDo application."
+ fi
+fi
+
+if [ ! -d $APPS/qimpen ]
+then
+ mkdir $APPS/qimpen
+fi
+
+if [ -f $DOCS/asciilower.qpt ]
+then
+ mv $DOCS/asciilower.qpt $APPS/qimpen
+fi
+
+if [ -f $DOCS/asciiupper.qpt ]
+then
+ mv $DOCS/asciiupper.qpt $APPS/qimpen
+fi
+
+if [ -f $DOCS/numeric.qpt ]
+then
+ mv $DOCS/numeric.qpt $APPS/qimpen
+fi
+
+if [ -d "$HOME/.qpe" ]
+then
+ if [ -d "$HOME/Settings" ]
+ then
+ mv $HOME/.qpe/* "$HOME/Settings"
+ rmdir "$HOME/.qpe"
+ else
+ mv $HOME/.qpe "$HOME/Settings"
+ fi
+fi