* added 'update-garage', crude script to update modest in garage with the latest...
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Sat, 19 May 2007 10:05:50 +0000 (10:05 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Sat, 19 May 2007 10:05:50 +0000 (10:05 +0000)
pmo-trunk-r1920

scripts/update-garage [new file with mode: 0755]

diff --git a/scripts/update-garage b/scripts/update-garage
new file mode 100755 (executable)
index 0000000..26058d7
--- /dev/null
@@ -0,0 +1,46 @@
+#!/bin/sh
+# -*-mode:sh-*-
+# Time-stamp: <2007-05-19 13:03:07 (djcb)>
+#
+# script to sync the external garage repository with what is inside 
+# projects.maemo, without the stuff that is only useful inside
+# projects.maemo.
+#
+
+LOCAL_GARAGE_DIR="$HOME/src/modest-garage"
+
+echo "+ checking $LOCAL_GARAGE_DIR"
+if [ -d $LOCAL_GARAGE_DIR ]; then
+   echo "$LOCAL_GARAGE_DIR already exists"
+   exit 1
+fi
+
+mkdir $LOCAL_GARAGE_DIR || {
+    echo "- failed to create $LOCAL_GARAGE_DIR"
+    exit 1
+}
+
+echo "+ checking out garage version"
+cd $LOCAL_GARAGE_DIR
+svn co https://garage.maemo.org/svn/modest/modest/trunk modest
+
+echo "+ dumping the internal version on top"
+svn export --force  https://projects.maemo.org/svn/email/modest-email/modest/trunk modest
+
+cd modest
+
+echo "+ removing internal stuff"
+rm -rf scripts
+rm debian/changelog
+
+echo "+ get the external debian/changelog"
+svn up debian/changelog
+
+echo "+ adding anything not yet in the garage repo"
+#FIXME: what about files that have been removed locally?
+svn add `find -type f | grep -v '.svn'` 2> /dev/null
+
+echo "+ showing the differences"
+svn diff | diffstat
+
+echo "+ now, go to $LOCAL_GARAGE_DIR/modest, edit debian/changelog, run 'svn commit' and write a nice commit message"
\ No newline at end of file