Ticket #364: trunkify

File trunkify, 409 bytes (added by Jim Ursetto, 12 years ago)
Line 
1SVN=/opt/local/bin/svn
2REPO=~/scheme/chicken-eggs4
3URL=http://code.call-cc.org/svn/chicken-eggs/release/4
4
5for egg in $*; do
6
7echo ---------- $egg -----------
8cd $REPO &&
9cd $egg &&
10$SVN copy -m "$egg: copy to trunk" $URL/$egg $URL/$egg/trunk &&
11$SVN up &&
12$SVN ls | egrep -v '^trunk/$' | tr '\012' '\000' | xargs -0 $SVN rm &&
13$SVN mkdir tags &&
14$SVN commit -m "$egg: remove non-trunk copy, add tags/"
15
16done