2009-08-02 10:00:56 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2010-07-02 09:40:58 -04:00
|
|
|
# run this script from the devel directory
|
|
|
|
|
2010-04-01 22:03:32 -04:00
|
|
|
# set version number
|
2017-02-14 05:05:01 -05:00
|
|
|
VERSION=3
|
|
|
|
VERSION_MINOR=0
|
|
|
|
VERSION_PATCHLEVEL=0
|
2009-08-02 10:00:56 -04:00
|
|
|
|
2009-09-10 19:36:52 -04:00
|
|
|
# these are the library soname numbers see
|
|
|
|
# http://sources.redhat.com/autobook/autobook/autobook_91.html
|
|
|
|
# or the start of Makefile.am to see what was done before
|
|
|
|
|
2017-02-14 05:05:01 -05:00
|
|
|
LIBGMP_LT_CURRENT=23
|
|
|
|
LIBGMP_LT_REVISION=3
|
|
|
|
LIBGMP_LT_AGE=0
|
2009-08-02 10:00:56 -04:00
|
|
|
|
2017-02-14 05:05:01 -05:00
|
|
|
LIBGMPXX_LT_CURRENT=12
|
|
|
|
LIBGMPXX_LT_REVISION=3
|
|
|
|
LIBGMPXX_LT_AGE=4
|
2009-08-02 10:00:56 -04:00
|
|
|
|
2009-09-10 19:36:52 -04:00
|
|
|
echo "Setting MPIR to"
|
|
|
|
echo "MPIR-$VERSION.$VERSION_MINOR.$VERSION_PATCHLEVEL"
|
|
|
|
echo "GMP-soname-$LIBGMP_LT_CURRENT.$LIBGMP_LT_REVISION.$LIBGMP_LT_AGE"
|
|
|
|
echo "GMPXX-soname-$LIBGMPXX_LT_CURRENT.$LIBGMPXX_LT_REVISION.$LIBGMPXX_LT_AGE"
|
|
|
|
|
|
|
|
###############################################################
|
|
|
|
##############################################################
|
2009-08-02 10:00:56 -04:00
|
|
|
|
|
|
|
VERSION_STR=$VERSION.$VERSION_MINOR.$VERSION_PATCHLEVEL
|
2010-11-09 08:49:45 -05:00
|
|
|
TMPFILE=$(mktemp mpir.XXXXXX)
|
2009-08-02 10:00:56 -04:00
|
|
|
|
|
|
|
#update gmp-h.in
|
2010-07-02 09:40:58 -04:00
|
|
|
cat ../gmp-h.in \
|
2009-08-02 10:00:56 -04:00
|
|
|
| sed s/"#define[[:space:]]\+__MPIR_VERSION[[:space:]]\+.*"/"#define __MPIR_VERSION "$VERSION/ \
|
|
|
|
| sed s/"#define[[:space:]]\+__MPIR_VERSION_MINOR[[:space:]]\+.*"/"#define __MPIR_VERSION_MINOR "$VERSION_MINOR/ \
|
2010-04-06 05:57:32 -04:00
|
|
|
| sed s/"#define[[:space:]]\+__MPIR_VERSION_PATCHLEVEL[[:space:]]\+.*"/"#define __MPIR_VERSION_PATCHLEVEL "$VERSION_PATCHLEVEL/ \
|
2010-05-26 04:23:02 -04:00
|
|
|
| sed s/"#define[[:space:]]\+_MSC_MPIR_VERSION[[:space:]]\+.*"/"#define _MSC_MPIR_VERSION "\"$VERSION_STR\"/ > $TMPFILE
|
2010-07-02 09:40:58 -04:00
|
|
|
mv $TMPFILE ../gmp-h.in
|
2009-08-02 10:00:56 -04:00
|
|
|
|
|
|
|
#update Makefile.am
|
2010-07-02 09:40:58 -04:00
|
|
|
cat ../Makefile.am \
|
2009-08-02 10:00:56 -04:00
|
|
|
| sed s/"LIBGMP_LT_CURRENT[[:space:]]*=[[:space:]]*.*"/"LIBGMP_LT_CURRENT = "$LIBGMP_LT_CURRENT/ \
|
|
|
|
| sed s/"LIBGMP_LT_REVISION[[:space:]]*=[[:space:]]*.*"/"LIBGMP_LT_REVISION = "$LIBGMP_LT_REVISION/ \
|
|
|
|
| sed s/"LIBGMP_LT_AGE[[:space:]]*=[[:space:]]*.*"/"LIBGMP_LT_AGE = "$LIBGMP_LT_AGE/ \
|
|
|
|
| sed s/"LIBGMPXX_LT_CURRENT[[:space:]]*=[[:space:]]*.*"/"LIBGMPXX_LT_CURRENT = "$LIBGMPXX_LT_CURRENT/ \
|
|
|
|
| sed s/"LIBGMPXX_LT_REVISION[[:space:]]*=[[:space:]]*.*"/"LIBGMPXX_LT_REVISION = "$LIBGMPXX_LT_REVISION/ \
|
2011-03-14 18:31:56 -04:00
|
|
|
| sed s/"LIBGMPXX_LT_AGE[[:space:]]*=[[:space:]]*.*"/"LIBGMPXX_LT_AGE = "$LIBGMPXX_LT_AGE/ > $TMPFILE
|
2010-07-02 09:40:58 -04:00
|
|
|
mv $TMPFILE ../Makefile.am
|
2009-08-02 10:00:56 -04:00
|
|
|
|
|
|
|
#update doc/version
|
2010-07-02 09:40:58 -04:00
|
|
|
echo -n "@set UPDATED " > ../doc/version.texi
|
|
|
|
date "+%d %B %Y" >> ../doc/version.texi
|
|
|
|
echo -n "@set UPDATED-MONTH " >> ../doc/version.texi
|
|
|
|
date "+%B %Y" >> ../doc/version.texi
|
|
|
|
echo "@set EDITION $VERSION_STR" >> ../doc/version.texi
|
|
|
|
echo "@set VERSION $VERSION_STR" >> ../doc/version.texi
|
2009-08-02 10:00:56 -04:00
|
|
|
|
|
|
|
#update makeinfo
|
2010-07-02 09:40:58 -04:00
|
|
|
cd ../doc
|
2009-08-02 10:00:56 -04:00
|
|
|
makeinfo mpir.texi
|
|
|
|
makeinfo version.texi
|
|
|
|
cd ..
|
|
|
|
|
2017-02-14 05:05:01 -05:00
|
|
|
autoreconf -fiv --no-recursive
|
2009-08-02 10:00:56 -04:00
|
|
|
rm -f $TMPFILE
|
2010-07-02 09:40:58 -04:00
|
|
|
cd devel
|