diff options
author | Kuang-che Wu <kcwu@csie.org> | 2014-12-06 16:15:57 +0800 |
---|---|---|
committer | Kuang-che Wu <kcwu@csie.org> | 2014-12-06 16:24:06 +0800 |
commit | c36028552823ef728da8df4037a35001d95a0afe (patch) | |
tree | fec4e233f0ddcc097707daefb0d8a382c395c4fe /sources/wiki | |
parent | f9994a2346cab060274946a82c444d087f67b523 (diff) | |
download | taginfo-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/wiki')
-rwxr-xr-x | sources/wiki/extract_words.rb | 2 | ||||
-rwxr-xr-x | sources/wiki/get_image_info.rb | 2 | ||||
-rwxr-xr-x | sources/wiki/get_page_list.rb | 2 | ||||
-rwxr-xr-x | sources/wiki/get_wiki_data.rb | 2 |
4 files changed, 4 insertions, 4 deletions
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] |