Codebase list texinfo / debian/6.7.0.dfsg.2-5 tp / maintain / change_perl_modules_version.sh
debian/6.7.0.dfsg.2-5

Tree @debian/6.7.0.dfsg.2-5 (Download .tar.gz)

change_perl_modules_version.sh @debian/6.7.0.dfsg.2-5raw · history · blame

#! /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'"'/'