texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/tp TODO maintain/prepare_perl_module.sh...


From: Patrice Dumas
Subject: texinfo/tp TODO maintain/prepare_perl_module.sh...
Date: Fri, 06 Jan 2012 00:13:13 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        12/01/06 00:13:13

Modified files:
        tp             : TODO 
        tp/maintain    : prepare_perl_module.sh 
Added files:
        tp/maintain    : change_perl_modules_version.sh 

Log message:
        Add a sed script to change version of all modules.
        Use it wehn generating a new module distribution, based the version from
        Makefile.PL (which is in turn from Texinfo/Parser.pm).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.237&r2=1.238
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/maintain/prepare_perl_module.sh?cvsroot=texinfo&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/maintain/change_perl_modules_version.sh?cvsroot=texinfo&rev=1.1

Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -b -r1.237 -r1.238
--- TODO        5 Jan 2012 23:50:28 -0000       1.237
+++ TODO        6 Jan 2012 00:13:13 -0000       1.238
@@ -6,10 +6,6 @@
 Before next release
 ===================
 
-Do a sed script to change VERSION in all modules that have
-it.
-
-
 
 Bugs
 ====

Index: maintain/prepare_perl_module.sh
===================================================================
RCS file: /sources/texinfo/texinfo/tp/maintain/prepare_perl_module.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- maintain/prepare_perl_module.sh     25 Dec 2011 10:57:42 -0000      1.2
+++ maintain/prepare_perl_module.sh     6 Jan 2012 00:13:13 -0000       1.3
@@ -8,6 +8,7 @@
 perl Makefile.PL
 VERSION=`grep '^VERSION = ' Makefile | sed 's/^VERSION = *//'`
 [ z"$VERSION" = 'z' ] && exit 1
+./maintain/change_perl_modules_version.sh $VERSION
 rm -f Texinfo-$VERSION.tar.gz
 cp -p ../COPYING .
 make && make dist

Index: maintain/change_perl_modules_version.sh
===================================================================
RCS file: maintain/change_perl_modules_version.sh
diff -N maintain/change_perl_modules_version.sh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ maintain/change_perl_modules_version.sh     6 Jan 2012 00:13:13 -0000       
1.1
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+VERS=$1
+[ z"$VERS" = "z" ] && exit 1;
+
+find Texinfo/ -name '*.pm' | xargs sed -i -e 's/\$VERSION = 
'"'"'\([0-9.]\+\)'"'"'/$VERSION = '"'$VERS'"'/'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]