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/sisu | 124 +++++++++++++++++++++++++++++++++++++++++ debian/bin/sisu3 | 124 +++++++++++++++++++++++++++++++++++++++++ debian/bin/sisu_termsheet | 139 ++++++++++++++++++++++++++++++++++++++++++++++ debian/bin/sisu_webrick | 126 +++++++++++++++++++++++++++++++++++++++++ debian/sisu.install | 8 +-- 5 files changed, 517 insertions(+), 4 deletions(-) create mode 100644 debian/bin/sisu create mode 100644 debian/bin/sisu3 create mode 100644 debian/bin/sisu_termsheet create mode 100644 debian/bin/sisu_webrick (limited to 'debian') diff --git a/debian/bin/sisu b/debian/bin/sisu new file mode 100644 index 00000000..7071d4bb --- /dev/null +++ b/debian/bin/sisu @@ -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 + + 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 + + diff --git a/debian/bin/sisu_termsheet b/debian/bin/sisu_termsheet new file mode 100644 index 00000000..de9a085a --- /dev/null +++ b/debian/bin/sisu_termsheet @@ -0,0 +1,139 @@ +#! /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 + + + + ** Description: SiSU information Structuring Universe, specialised + pre-processing wrapper + + sisu -t x_bank.and.* + e.g. sisu -t x_bank.and.*.termsheet.rb + e.g. sisu_termsheet.rb -t x_bank.and.c*.termsheet.rb + program calls upon termsheet file with extension termsheet.rb + termsheet.rb calls upon relevant standard form files (to be used) with extension .sForm.rb + there is also a standard_terms.rb file - with terms/details that are constant + the file produced is named after the termsheet.rb with that extension replaced with .er30 + from there scribbler.rb is called upon its usual metaVerse html and pdf creation + ! :-) + to test run + termsheet.rb -f dev.export.import.trade.facility.termsheet.rb + the term sheet calls the standard form or template that is to be run against it. diff --git a/debian/bin/sisu_webrick b/debian/bin/sisu_webrick new file mode 100644 index 00000000..7b7d2ea1 --- /dev/null +++ b/debian/bin/sisu_webrick @@ -0,0 +1,126 @@ +#! /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 + + + + ** Description: webrick share - note sisu by default does not link with file + suffixes, see man pages for options diff --git a/debian/sisu.install b/debian/sisu.install index ca06945b..2892d2a2 100644 --- a/debian/sisu.install +++ b/debian/sisu.install @@ -1,5 +1,7 @@ -bin/sisu usr/bin -bin/sisu3 usr/bin +debian/bin/sisu usr/bin +debian/bin/sisu3 usr/bin +debian/bin/sisu_termsheet usr/bin +debian/bin/sisu_webrick usr/bin bin/sisu-concordance usr/bin bin/sisu-epub usr/bin bin/sisu-git usr/bin @@ -8,8 +10,6 @@ bin/sisu-html usr/bin bin/sisu-odf usr/bin bin/sisu-po usr/bin bin/sisu-txt usr/bin -bin/sisu_termsheet usr/bin -bin/sisu_webrick usr/bin lib/sisu usr/lib/ruby/1.8 lib/sisu usr/lib/ruby/1.9.1 conf/sisu etc -- cgit v1.2.3