mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
Fix utils/VERSION.INFO to correctly determine version number after Autoconf 2.57 adaptation. [Imported from Perforce change 8684 at 2006-12-01 20:37:15] Subversion-branch: /trunk/polyorb Subversion-revision: 36256
39 lines
944 B
Bash
39 lines
944 B
Bash
#!/bin/sh
|
|
#
|
|
# VERSION.INFO,v 1.11 1996/05/24 14:05:48 tardieu Exp
|
|
#
|
|
# This file will perform version substitution when building a release. It
|
|
# has to be tagged "to_be_released" and to be kept in synch as new releases
|
|
# appear.
|
|
#
|
|
# DO NOT CALL THIS FILE EXPLICITLY. IT WILL BE CALLED BY THE make_distrib
|
|
# program.
|
|
|
|
#
|
|
# If there is an argument on the command line, use it for the version number
|
|
#
|
|
|
|
if [ "x$1" != "x" ]
|
|
then
|
|
polyorb_version=`echo $1 | sed -e 's/^[^-]*-//'`
|
|
else
|
|
#gnat_version=`sed -n -e '/Gnat_Vers/s/[^"]*"\([^" ]*\).*/\1/p' ada/gnatvsn.ads`
|
|
polyorb_version=`awk -F", *" '/^AC_INIT/ {print $2}' < configure.ac`
|
|
fi
|
|
|
|
#
|
|
# files hold the list of files in which substitutions will occur
|
|
#
|
|
#files="README INSTALL Dist/xe_usage.adb Doc/install_guide.txt"
|
|
files="README"
|
|
|
|
#
|
|
# Do the job
|
|
#
|
|
for i in ${files}; do
|
|
mv $i $i.orig.$$
|
|
sed -e "s/@polyorb_version@/${polyorb_version}/g" < $i.orig.$$ \
|
|
> $i
|
|
rm -f $i.orig.$$
|
|
done
|