aboutsummaryrefslogtreecommitdiff
path: root/sources/languages
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/languages
parentfedae9468d974361783d6bd67fb05b353ac6c159 (diff)
downloadtaginfo-cf2345f0b143f6164f6bf35ac168d64a52db1951.tar
taginfo-cf2345f0b143f6164f6bf35ac168d64a52db1951.tar.gz
Allow overriding of ruby version in update scripts
Diffstat (limited to 'sources/languages')
-rwxr-xr-xsources/languages/update.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/sources/languages/update.sh b/sources/languages/update.sh
index 4441b88..e963d34 100755
--- a/sources/languages/update.sh
+++ b/sources/languages/update.sh
@@ -27,6 +27,12 @@ fi
echo "`$DATECMD` Start languages..."
+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-languages.db
rm -f $DATABASE
@@ -41,7 +47,7 @@ echo "`$DATECMD` Getting subtag registry..."
curl --silent --time-cond $REGISTRY_FILE --output $REGISTRY_FILE $REGISTRY_URL
echo "`$DATECMD` Running subtag import..."
-./import_subtag_registry.rb $DIR
+$EXEC_RUBY ./import_subtag_registry.rb $DIR
echo "`$DATECMD` Getting CLDR..."
curl --silent --location --time-cond $CLDR_FILE --output $CLDR_FILE $CLDR_URL
@@ -56,7 +62,7 @@ curl --silent --location --time-cond $UNICODE_SCRIPTS_FILE --output $UNICODE_SCR
curl --silent --location --time-cond $PROPERTY_ALIASES_FILE --output $PROPERTY_ALIASES_FILE $PROPERTY_ALIASES_URL
echo "`$DATECMD` Running unicode scripts import..."
-./import_unicode_scripts.rb $DIR
+$EXEC_RUBY ./import_unicode_scripts.rb $DIR
echo "`$DATECMD` Running post.sql..."
sqlite3 $DATABASE <post.sql