2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2025-02-20 12:30:04 +00:00
xcat-dep/Curses-1.23/gen/increase-version
2008-04-10 19:36:34 +00:00

23 lines
606 B
Bash
Executable File

#!/bin/sh
##
## incrase-version -- Increases version number everywhere
##
## Copyright (c) 2000 William Setzer
##
## You may distribute under the terms of either the Artistic License
## or the GNU General Public License, as specified in the README file.
##
## (but why would you want to?)
if [ "$1" = "" ]; then
echo "Usage: $0 <version>"
exit 1
fi
vers=$1
perl="/usr/local/bin/perl -p -i.bak -e"
$perl "s/^(.VERSION = )\d+\.\d+/\${1}$vers/" gen/make.Curses.pm
$perl "s/(Curses-)\d+\.\d+/\${1}$vers/" INSTALL
$perl "s/(VERSION\s+=>\s+')\d+\.\d+/\${1}$vers/" Makefile.PL