3 # Time-stamp: <2007-05-19 13:03:07 (djcb)>
5 # script to sync the external garage repository with what is inside
6 # projects.maemo, without the stuff that is only useful inside
10 LOCAL_GARAGE_DIR="$HOME/src/modest-garage"
12 echo "+ checking $LOCAL_GARAGE_DIR"
13 if [ -d $LOCAL_GARAGE_DIR ]; then
14 echo "$LOCAL_GARAGE_DIR already exists"
18 mkdir $LOCAL_GARAGE_DIR || {
19 echo "- failed to create $LOCAL_GARAGE_DIR"
23 echo "+ checking out garage version"
25 svn co https://garage.maemo.org/svn/modest/modest/trunk modest
27 echo "+ dumping the internal version on top"
28 svn export --force https://projects.maemo.org/svn/email/modest-email/modest/trunk modest
32 echo "+ removing internal stuff"
36 echo "+ get the external debian/changelog"
37 svn up debian/changelog
39 echo "+ adding anything not yet in the garage repo"
40 #FIXME: what about files that have been removed locally?
41 svn add `find -type f | grep -v '.svn'` 2> /dev/null
43 echo "+ showing the differences"
46 echo "+ now, go to $LOCAL_GARAGE_DIR/modest, edit debian/changelog, run 'svn commit' and write a nice commit message"