From 5a3b60287a03389de403fc9871f78148e215c05b Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 15 May 2011 09:46:59 -0400 Subject: v2 v3: bin/sisu2 introduced (complement bin/sisu3), currently same as bin/sisu * later switch bin/sisu to bin/sisu3 * consider using update-alternatives --- bin/sisu2 | 131 +++++++++++++++++++++++++++++++++++++++++++++ data/doc/sisu/CHANGELOG_v2 | 3 ++ data/doc/sisu/CHANGELOG_v3 | 3 ++ 3 files changed, 137 insertions(+) create mode 100644 bin/sisu2 diff --git a/bin/sisu2 b/bin/sisu2 new file mode 100644 index 00000000..9facda87 --- /dev/null +++ b/bin/sisu2 @@ -0,0 +1,131 @@ +#!/usr/bin/env ruby +# encoding: utf-8 +#SiSU: copyright (C) 1997 - 2011 Ralph Amissah; License GPL, see appended program information +begin + def ruby_version_ok?(base_version) + @v ||=RUBY_VERSION.scan(/\d+/) + vb=base_version.scan(/\d+/) + if @v[0].to_i < vb[0].to_i \ + or @v[0].to_i == vb[0].to_i \ + && @v[1].to_i < vb[1].to_i \ + or @v[0].to_i == vb[0].to_i \ + && @v[1].to_i == vb[1].to_i \ + && @v[1].to_i < vb[2].to_i + raise "Please, use Ruby#{vb} 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' \ + && 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/data/doc/sisu/CHANGELOG_v2 b/data/doc/sisu/CHANGELOG_v2 index a8fe889b..e4da5529 100644 --- a/data/doc/sisu/CHANGELOG_v2 +++ b/data/doc/sisu/CHANGELOG_v2 @@ -15,6 +15,9 @@ Reverse Chronological: %% 2.9.4.orig.tar.gz (2011-05-15:19/7) [see 3.0.9] http://git.sisudoc.org/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/3.0.9-1 + * bin/sisu2 introduced (to complement bin/sisu3), currently same as bin/sisu + (later switch bin/sisu to bin/sisu3; consider using update-alternatives) + * copyright file, softlink, make more visible in tarball and update * sisu-mode.el assigned to FSF (GNU EMACS) diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3 index 38d08d3d..417a4804 100644 --- a/data/doc/sisu/CHANGELOG_v3 +++ b/data/doc/sisu/CHANGELOG_v3 @@ -20,6 +20,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.0.9.orig.tar.gz sisu_3.0.9-1.dsc sisu_3.0.9-1.debian.tar.gz + * bin/sisu2 introduced (to complement bin/sisu3), currently same as bin/sisu + (later switch bin/sisu to bin/sisu3; consider using update-alternatives) + * copyright file, softlink, make more visible in tarball and update * sisu-mode.el assigned to FSF (GNU EMACS) -- cgit v1.2.3