[Bps-public-commit] r12927 - in Shipwright: . trunk/t/hello/scripts
spang at bestpractical.com
spang at bestpractical.com
Thu Jun 5 15:01:41 EDT 2008
Author: spang
Date: Thu Jun 5 15:01:41 2008
New Revision: 12927
Modified:
Shipwright/ (props changed)
Shipwright/trunk/lib/Shipwright/Build.pm
Shipwright/trunk/t/hello/scripts/build
Log:
r40865 at loki: spang | 2008-06-05 15:00:36 -0400
Make build scripts skip commented lines (starting with #) and modify the hello
test case so that its build script includes comments.
Modified: Shipwright/trunk/lib/Shipwright/Build.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Build.pm (original)
+++ Shipwright/trunk/lib/Shipwright/Build.pm Thu Jun 5 15:01:41 2008
@@ -183,7 +183,7 @@
for (@cmds) {
my ( $type, $cmd );
- next unless /\S/;
+ next unless /\S/ && /^(?!#)\w+/; # skip commented and blank lines
if (/^(\S+):\s*(.*)/) {
$type = $1;
Modified: Shipwright/trunk/t/hello/scripts/build
==============================================================================
--- Shipwright/trunk/t/hello/scripts/build (original)
+++ Shipwright/trunk/t/hello/scripts/build Thu Jun 5 15:01:41 2008
@@ -1,4 +1,6 @@
+# this is a test comment
configure: /usr/bin/perl Build.PL --install_base=%%INSTALL_BASE%%
make: ./Build
test: ./Build test
+# and another
install: ./Build install
More information about the Bps-public-commit
mailing list