Commits

Shlomi Fish committed 29deca4

Script to convert from Makefile.PL to Build.PL.

Comments (0)

Files changed (3)

shlomif-settings/Bash/Themes/themes/fcs/source.bash

 
 t()
 {
-    (cd "$c_src" && perl run-tests.pl)
+    (export HARNESS_BREAK=1; cd "$c_src/B" && make && make test ; finish-client)
+}
+
+# parallel-tests
+pt()
+{
+    ( unset FCS_USE_TEST_RUN; t; )
 }
 
 make()

shlomif-settings/Bash/Themes/themes/rpm/mag/source.bash

     _sys sudo urpmi "$(pwd)"/RPMS/*/*.rpm
 }
 
+force_u_rpms()
+{
+    _sys sudo rpm -Uvh --force "$(pwd)"/RPMS/*/*.rpm
+}
+
 prompt()
 {
     __prompt_cmd \

shlomif-settings/home-bin-executables/bin/rpmspec-convert-from-Makefile.PL-to-Build.PL.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+while (<>)
+{
+    chomp;
+    s#\A\Q%{__perl} Makefile.PL INSTALLDIRS=vendor\E\s*\z#%{__perl} Build.PL --installdirs=vendor#
+        or
+    s#\A%make((?: test)?)\s*\z#./Build$1#
+        or
+    s#\A%makeinstall_std\s*\z#./Build install --destdir=%buildroot#
+        ;
+    print "$_\n";
+}