aboutsummaryrefslogtreecommitdiff
path: root/sources/wiki
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-22 21:59:34 +0100
committerJochen Topf <jochen@topf.org>2013-01-22 21:59:34 +0100
commitcf2345f0b143f6164f6bf35ac168d64a52db1951 (patch)
treebf1e2ffbee03fce405e0c3b1c3fa7d7c2c7d5283 /sources/wiki
parentfedae9468d974361783d6bd67fb05b353ac6c159 (diff)
downloadtaginfo-cf2345f0b143f6164f6bf35ac168d64a52db1951.tar
taginfo-cf2345f0b143f6164f6bf35ac168d64a52db1951.tar.gz
Allow overriding of ruby version in update scripts
Diffstat (limited to 'sources/wiki')
-rwxr-xr-xsources/wiki/update.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/sources/wiki/update.sh b/sources/wiki/update.sh
index 308c1b4..e922710 100755
--- a/sources/wiki/update.sh
+++ b/sources/wiki/update.sh
@@ -18,6 +18,12 @@ fi
echo "`$DATECMD` Start wiki..."
+EXEC_RUBY="$TAGINFO_RUBY"
+if [ "x$EXEC_RUBY" = "x" ]; then
+ EXEC_RUBY=ruby
+fi
+echo "Running with ruby set as '${EXEC_RUBY}'"
+
DATABASE=$DIR/taginfo-wiki.db
CACHEDB=$DIR/wikicache.db
LOGFILE_WIKI_DATA=$DIR/get_wiki_data.log
@@ -39,16 +45,16 @@ echo "`$DATECMD` Running pre.sql..."
sqlite3 $DATABASE <pre.sql
echo "`$DATECMD` Getting page list..."
-./get_page_list.rb $DIR
+$EXEC_RUBY ./get_page_list.rb $DIR
echo "`$DATECMD` Getting wiki data..."
-./get_wiki_data.rb $DIR >$LOGFILE_WIKI_DATA
+$EXEC_RUBY ./get_wiki_data.rb $DIR >$LOGFILE_WIKI_DATA
echo "`$DATECMD` Getting image info..."
-./get_image_info.rb $DIR >$LOGFILE_IMAGE_INFO
+$EXEC_RUBY ./get_image_info.rb $DIR >$LOGFILE_IMAGE_INFO
echo "`$DATECMD` Extracting words..."
-./extract_words.rb $DIR
+$EXEC_RUBY ./extract_words.rb $DIR
echo "`$DATECMD` Running post.sql..."
sqlite3 $DATABASE <post.sql