From 778bcb699a6770d05be9fbf6c75f9a836a3dcbd9 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 26 Mar 2011 13:55:32 -0400 Subject: modify sisu shebang for debian * debian/bin modify shebang #! /usr/bin/ruby1.9.1 for current ruby 1.9.2 * debian/sisu.install use debian/bin --- debian/bin/sisu3 | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 debian/bin/sisu3 (limited to 'debian/bin/sisu3') diff --git a/debian/bin/sisu3 b/debian/bin/sisu3 new file mode 100644 index 00000000..602ecf61 --- /dev/null +++ b/debian/bin/sisu3 @@ -0,0 +1,124 @@ +#! /usr/bin/ruby1.9.1 +# encoding: utf-8 +#SiSU: copyright (C) 1997 - 2011 Ralph Amissah; License GPL, see appended program information +begin + def check_sisu_stable_ruby_version? + rbv_sisu_stable='1.8.7' + if RUBY_VERSION < rbv_sisu_stable + raise "Please, use Ruby#{rbv_sisu_stable} or later, current Ruby #{RUBY_VERSION}" + else check_incompatible_ruby_build? + end + end + def check_sisu_dev_ruby_version? + rbv_sisu_dev='1.9.2' + if RUBY_VERSION < rbv_sisu_dev + raise "Please, use Ruby#{rbv_sisu_dev} or later, current Ruby #{RUBY_VERSION}" + else check_incompatible_ruby_build? + end + end + def check_incompatible_ruby_build? + require 'rbconfig' + e=Config::CONFIG + if RUBY_VERSION == '1.9.2' \ + and e['PATCHLEVEL'].to_i < 180 + raise <. + + If you have Internet connection, the latest version of the GPL should be + available at these locations: + + + + + + + + * SiSU uses: + * Standard SiSU markup syntax, + * Standard SiSU meta-markup syntax, and the + * Standard SiSU object citation numbering and system + + * Hompages: + + + + * Download: + + + * Ralph Amissah + + -- cgit v1.2.3