summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/tp/maintain/change_perl_modules_version.sh
blob: c40b0ef82d224ddf1a432a7640c51613f50ada29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

VERS=$1
if test z"$VERS" = "zauto" ; then 
  VERS=`grep '^AC_INIT' ../configure.ac | sed -e 's/^[^0-9]*//' -e 's/].*//'`
  echo vers is $VERS
fi
if test z"$VERS" = "z" ; then
  exit 1
fi
 

#find Texinfo/ -name '*.pm' | xargs sed -i -e 's/\$VERSION = '"'"'\([0-9.]\+\)'"'"'/$VERSION = '"'$VERS'"'/'
find Texinfo/ -name '*.pm' | xargs perl -pi -e 's/\$VERSION = '"'([0-9.]+[^']*)'"'/\$VERSION = '"'$VERS'"'/'