Skip to content

Commit

Permalink
Updated script to selectively include svn externals
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlijn van Deen authored and pywikipedia project committed May 22, 2011
1 parent 122e993 commit f88e104
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README
Expand Up @@ -3,6 +3,10 @@ Repositories are created in
using
svn co <url> <path> --ignore-externals

Externals can be included by including a .externals file in the root directory of the svn checkout, which should have one directory per line. These will be included using
svn update <directory> --ignore-externals
so it will *not* fetch externals recursively. Any 'recursive' externals should be included with their full path from the *original* svn root checkout.

<path> uses . as a separator for subpackages: pywikipedia.spelling is a subpackage of pywikipedia. This currently works for only one level. (this actually has not been coded yet)

The packages are generated nightly using a crontab entry:
Expand Down
6 changes: 6 additions & 0 deletions nightly.sh
Expand Up @@ -30,6 +30,12 @@ do

# update the SVN checkout
svn up --ignore-externals > $LOG_DIR/$i/svn.log
if [ -e ".externals" ]; then
cat .externals | while read external; do
echo "Updating $external" >> $LOG_DIR/$i/svn.log
svn up --ignore-externals $external >> $LOG_DIR/$i/svn.log
done
fi
svn log --limit 1 | grep -v -e '-\{72\}' > $LOG_DIR/$i/latest.log

# create packages
Expand Down

0 comments on commit f88e104

Please sign in to comment.