aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-05-09 22:21:33 -0400
committerRalph Amissah <ralph@amissah.com>2013-05-09 22:21:33 -0400
commit879a4e6cbe97721bbc6cd18b324524159b4807ef (patch)
treefd9cde1516e36545626ed06dee71edc4342b84d2 /bin
parentv4: cgi script for sample search form, minor fixes (diff)
v5 dev branch opened (starts as copy of v4 stable branch); v3 branch closedsisu_4.1.0
* 5.0.0 dev opened * 4.1.0 stable * 3.* branch gone
Diffstat (limited to 'bin')
-rw-r--r--bin/sisu26
l---------bin/sisu5 (renamed from bin/sisu3)0
2 files changed, 13 insertions, 13 deletions
diff --git a/bin/sisu b/bin/sisu
index ee4e1369..4914890c 100644
--- a/bin/sisu
+++ b/bin/sisu
@@ -54,29 +54,29 @@ WOK
$KCODE='u' if RUBY_VERSION < '1.9'
argv=$*
SiSU_called_from_directory=Dir.pwd
- if $0 !~/\bsisu[34]$/
+ if $0 !~/\bsisu[45]$/
SiSU_version_dir=case argv.inspect
- when /"(?:--v3)"/
- check_sisu_stable_ruby_version?
- 'v3'
when /"(?:--v4)"/
check_sisu_stable_ruby_version?
'v4'
+ when /"(?:--v5)"/
+ check_sisu_stable_ruby_version?
+ 'v5'
when /"(?:--dev)"/
check_sisu_dev_ruby_version?
- 'v4'
+ 'v5'
else
check_sisu_stable_ruby_version?
'v4'
end
else
SiSU_version_dir=case $0
- when /\bsisu3$/
- check_sisu_stable_ruby_version?
- 'v3'
when /\bsisu4$/
check_sisu_stable_ruby_version?
'v4'
+ when /\bsisu5$/
+ check_sisu_stable_ruby_version?
+ 'v5'
else
check_sisu_stable_ruby_version?
'v4'
@@ -84,18 +84,18 @@ WOK
end
#% $0 File.expand_path($0)
e=Config::CONFIG
- SiSU_path_base=if $0 =~ /^#{e['bindir']}\/sisu[34]?$/
+ SiSU_path_base=if $0 =~ /^#{e['bindir']}\/sisu[45]?$/
nil
- elsif $0 !~ /^#{e['bindir']}\/sisu[34]?$/ \
- && File.expand_path($0) =~/bin\/sisu[34]?$/ \
+ elsif $0 !~ /^#{e['bindir']}\/sisu[45]?$/ \
+ && File.expand_path($0) =~/bin\/sisu[45]?$/ \
&& FileTest.file?($0)
- File.expand_path($0).sub(/\/bin\/sisu[34]?$/,'')
+ File.expand_path($0).sub(/\/bin\/sisu[45]?$/,'')
else
nil
end
SiSU_lib="sisu/#{SiSU_version_dir}"
sisu_path_specified_lib_=SiSU_path_base \
- ? File.expand_path($0).sub(/bin\/sisu[34]?$/,'lib')
+ ? File.expand_path($0).sub(/bin\/sisu[45]?$/,'lib')
: nil
SiSU_path_specified_Version_=SiSU_path_base \
? "#{SiSU_path_base}/data/sisu/#{SiSU_version_dir}/v/version.yml"
diff --git a/bin/sisu3 b/bin/sisu5
index b4999d51..b4999d51 120000
--- a/bin/sisu3
+++ b/bin/sisu5