/usr/src/openswan-2.6.38/packaging/utils/canrel is in openswan-modules-dkms 1:2.6.38-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #! /bin/sh
# canrel [-F] release
# -F means override previous run
# current versions in the repository are used
# must be run in a release-branch CVS working directory with current top/*
PATH=/bin:/usr/bin ; export PATH
umask 022
. ~build/freeswan-regress-env.sh
opt=
case "$1" in
-F) opt=-F ; shift ;;
esac
case "$#:$1" in
1:*.*) ;;
*) echo "Usage: $0 release" >&2 ; exit 2 ;;
esac
rel="$1"
pretag="PRE`echo $rel | tr '.' '_'`"
rtag="R`echo $rel | tr '.' '_'`"
sed '1s/xxx/'"$rel"'/' README >README.$$
if cmp -s README README.$$
then
: already current, for some reason
rm -f README.$$
else
mv README.$$ README
cvs -Q commit -m "update for release $rel" README
fi
sed '/=.*/s//='"$rel"'/' Makefile.ver >mversion.$$
if cmp -s Makefile.ver mversion.$$
then
: already current, for some reason
rm -f mversion.$$
else
mv mversion.$$ Makefile.ver
cvs -Q commit -m "update for release $rel" Makefile.ver
fi
sed '1s/xxx/'"$rel"'/' CHANGES >CHANGES.$$
if cmp -s CHANGES CHANGES.$$
then
: already current, for some reason
rm -f CHANGES.$$
else
mv CHANGES.$$ CHANGES
cvs -Q commit -m "update for release $rel" CHANGES
fi
cd ..
cvs rtag $opt -r $pretag $rtag all
|