Skip to content

Commit

Permalink
Item4480: moved the link deletion to only take out broken links after…
Browse files Browse the repository at this point in the history
… the svn update is complete

git-svn-id: http://svn.foswiki.org/trunk@1247 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Dec 10, 2008
1 parent b9c6433 commit ba977f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/tools/develop/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ cd /usr/home/trunk.foswiki.org
# | sh
#done

# Cleanup: remove all symbolilc links
find . -type l -print0|xargs -r0 rm

# Revert Foswiki.pm as we modified it to show the last revision
svn revert core/lib/Foswiki.pm

Expand All @@ -28,13 +25,16 @@ svn update
cd core
perl pseudo-install.pl -link default

# Remove broken links
find -L . -type l -exec rm \{\} \;

# Modify Foswiki.pm to show the last revision
REV=`svnlook youngest /home/svn/nextwiki`
cd lib
sed -e "s/\(RELEASE = '\)/\1SVN $REV: /" Foswiki.pm > Foswiki.pm.new
mv Foswiki.pm.new Foswiki.pm

# Linking all non-existing webs to trunk
# Make sure we have links to all non-existing webs to trunk
for dir in data pub; do
cd ../$dir
for f in /home/foswiki.org/$dir/*; do
Expand Down

0 comments on commit ba977f4

Please sign in to comment.