aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorKuang-che Wu <kcwu@csie.org>2014-12-06 16:15:57 +0800
committerKuang-che Wu <kcwu@csie.org>2014-12-06 16:24:06 +0800
commitc36028552823ef728da8df4037a35001d95a0afe (patch)
treefec4e233f0ddcc097707daefb0d8a382c395c4fe /sources
parentf9994a2346cab060274946a82c444d087f67b523 (diff)
downloadtaginfo-c36028552823ef728da8df4037a35001d95a0afe.tar
taginfo-c36028552823ef728da8df4037a35001d95a0afe.tar.gz
Don't hard code ruby path
On FreeBSD, ruby is installed at /usr/local/bin/ruby. To make it more portable, find ruby interpreter from env (PATH).
Diffstat (limited to 'sources')
-rwxr-xr-xsources/db/update_characters.rb2
-rwxr-xr-xsources/josm/import_josm.rb2
-rwxr-xr-xsources/languages/import_subtag_registry.rb2
-rwxr-xr-xsources/languages/import_unicode_scripts.rb2
-rwxr-xr-xsources/potlatch/import_potlatch.rb2
-rwxr-xr-xsources/projects/import.rb2
-rwxr-xr-xsources/projects/parse.rb2
-rwxr-xr-xsources/wiki/extract_words.rb2
-rwxr-xr-xsources/wiki/get_image_info.rb2
-rwxr-xr-xsources/wiki/get_page_list.rb2
-rwxr-xr-xsources/wiki/get_wiki_data.rb2
11 files changed, 11 insertions, 11 deletions
diff --git a/sources/db/update_characters.rb b/sources/db/update_characters.rb
index 1b2faaf..826e392 100755
--- a/sources/db/update_characters.rb
+++ b/sources/db/update_characters.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: DB
diff --git a/sources/josm/import_josm.rb b/sources/josm/import_josm.rb
index 5ed7a38..aa82e3e 100755
--- a/sources/josm/import_josm.rb
+++ b/sources/josm/import_josm.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: JOSM
diff --git a/sources/languages/import_subtag_registry.rb b/sources/languages/import_subtag_registry.rb
index 300b0fb..2a4abc1 100755
--- a/sources/languages/import_subtag_registry.rb
+++ b/sources/languages/import_subtag_registry.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: Languages
diff --git a/sources/languages/import_unicode_scripts.rb b/sources/languages/import_unicode_scripts.rb
index e946983..b755527 100755
--- a/sources/languages/import_unicode_scripts.rb
+++ b/sources/languages/import_unicode_scripts.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: Languages
diff --git a/sources/potlatch/import_potlatch.rb b/sources/potlatch/import_potlatch.rb
index c63670d..11a73e9 100755
--- a/sources/potlatch/import_potlatch.rb
+++ b/sources/potlatch/import_potlatch.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: Potlatch
diff --git a/sources/projects/import.rb b/sources/projects/import.rb
index 46ebc60..5b1f0b4 100755
--- a/sources/projects/import.rb
+++ b/sources/projects/import.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: Projects
diff --git a/sources/projects/parse.rb b/sources/projects/parse.rb
index 40bd288..f077a70 100755
--- a/sources/projects/parse.rb
+++ b/sources/projects/parse.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# Taginfo source: Projects
diff --git a/sources/wiki/extract_words.rb b/sources/wiki/extract_words.rb
index 8f2fa16..c1c5279 100755
--- a/sources/wiki/extract_words.rb
+++ b/sources/wiki/extract_words.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# extract_words.rb [DIR]
diff --git a/sources/wiki/get_image_info.rb b/sources/wiki/get_image_info.rb
index 6254208..7d37528 100755
--- a/sources/wiki/get_image_info.rb
+++ b/sources/wiki/get_image_info.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# get_image_info.rb [DIR]
diff --git a/sources/wiki/get_page_list.rb b/sources/wiki/get_page_list.rb
index 8174812..4409f3f 100755
--- a/sources/wiki/get_page_list.rb
+++ b/sources/wiki/get_page_list.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# get_page_list.rb [DIR]
diff --git a/sources/wiki/get_wiki_data.rb b/sources/wiki/get_wiki_data.rb
index e63f39e..4d8029c 100755
--- a/sources/wiki/get_wiki_data.rb
+++ b/sources/wiki/get_wiki_data.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/usr/bin/env ruby
#------------------------------------------------------------------------------
#
# get_wiki_data.rb [DIR]