-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item4480: update version number on trunk.foswiki.org so we can see wh…
…at svn rev is actually running git-svn-id: http://svn.foswiki.org/trunk@976 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
CrawfordCurrie
authored and
CrawfordCurrie
committed
Nov 26, 2008
1 parent
b1b9d4a
commit bf36c68
Showing
1 changed file
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
#!/bin/sh | ||
# Regular cleanup of shipped webs. | ||
cd /usr/home/trunk.foswiki.org | ||
|
||
cd $HOME/twikisvn/core | ||
|
||
WEBS="Main TWiki Sandbox _default Trash TestCases"; | ||
#WEBS="Main TWiki Sandbox _default Trash TestCases"; | ||
|
||
# Cleanup. | ||
# Delete wrongly created files in shipped webs | ||
# Revert modified files | ||
for web in $WEBS; do | ||
# Note: ignores changes to properties | ||
svn status --no-ignore data/$web pub/$web \ | ||
| egrep '^(I|\?|M|C)' \ | ||
| sed 's/^\(I\|\?\)...../rm -rf/' \ | ||
| sed 's/^\(M\|C\)...../svn revert/' \ | ||
| sh | ||
done | ||
#for web in $WEBS; do | ||
# # Note: ignores changes to properties | ||
# svn status --no-ignore data/$web pub/$web \ | ||
# | egrep '^(I|\?|M|C)' \ | ||
# | sed 's/^\(I\|\?\)...../rm -rf/' \ | ||
# | sed 's/^\(M\|C\)...../svn revert/' \ | ||
# | sh | ||
#done | ||
|
||
svn revert core/lib/Foswiki.pm | ||
svn update | ||
REV=`svnlook youngest /home/svn/nextwiki` | ||
cd core | ||
perl pseudo-install.pl -link default | ||
cd lib | ||
sed -e "s/\(RELEASE = '\)/\1SVN $REV: /" Foswiki.pm > Foswiki.pm.new | ||
mv Foswiki.pm.new Foswiki.pm | ||
cd ../data | ||
for f in /home/foswiki.org/data/*; do | ||
if [ -d $f -a ! -e `basename $f` ]; then | ||
ln -s $f | ||
fi | ||
done |