[DRE-commits] r3340 - in tools/ruby-support/trunk: . autoscripts bin

ryan52-guest at alioth.debian.org ryan52-guest at alioth.debian.org
Thu Mar 26 06:45:50 UTC 2009


Author: ryan52-guest
Date: 2009-03-26 06:45:49 +0000 (Thu, 26 Mar 2009)
New Revision: 3340

Added:
   tools/ruby-support/trunk/autoscripts/
   tools/ruby-support/trunk/autoscripts/ruby-support-postinst
   tools/ruby-support/trunk/autoscripts/ruby-support-prerm
   tools/ruby-support/trunk/bin/dh_ruby
Log:
add the first part of the debhelper program

Added: tools/ruby-support/trunk/autoscripts/ruby-support-postinst
===================================================================
--- tools/ruby-support/trunk/autoscripts/ruby-support-postinst	                        (rev 0)
+++ tools/ruby-support/trunk/autoscripts/ruby-support-postinst	2009-03-26 06:45:49 UTC (rev 3340)
@@ -0,0 +1,3 @@
+if which ruby-support 2>/dev/null >/dev/null; then
+  ruby-support -i LIB
+fi

Added: tools/ruby-support/trunk/autoscripts/ruby-support-prerm
===================================================================
--- tools/ruby-support/trunk/autoscripts/ruby-support-prerm	                        (rev 0)
+++ tools/ruby-support/trunk/autoscripts/ruby-support-prerm	2009-03-26 06:45:49 UTC (rev 3340)
@@ -0,0 +1,3 @@
+if which ruby-support 2>/dev/null >/dev/null; then
+  ruby-support -r LIB
+fi

Added: tools/ruby-support/trunk/bin/dh_ruby
===================================================================
--- tools/ruby-support/trunk/bin/dh_ruby	                        (rev 0)
+++ tools/ruby-support/trunk/bin/dh_ruby	2009-03-26 06:45:49 UTC (rev 3340)
@@ -0,0 +1,20 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use Debian::Debhelper::Dh_Lib;
+
+init();
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+    my $tmp=tmpdir($package);
+    next if(!-d "$tmp/usr/lib/ruby-support/");
+    my $rbversions = pkgfile($package, "rbversions");
+    if($rbversions) {
+        doit("install","-p","-m644",$rbversions,"$tmp/usr/lib/ruby-support/$package.rbversions");
+    }
+    if (! $dh{NOSCRIPTS}) {
+        autoscript($package, "postinst", "ruby-support-postinst", "s/LIB/$package/");
+        autoscript($package, "prerm", "ruby-support-prerm", "s/LIB/$package/");
+    }
+}


Property changes on: tools/ruby-support/trunk/bin/dh_ruby
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-ruby-extras-commits mailing list