2005-06-22 01:48:50 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2006-11-11 05:42:12 +03:00
|
|
|
# Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
2005-06-22 01:48:50 +04:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2013-04-02 16:05:30 +04:00
|
|
|
# Copyright (c) 2008-2013 Cisco Systems, Inc. All rights reserved.
|
2005-06-22 01:48:50 +04:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Version of auto tools that we want
|
|
|
|
#
|
|
|
|
|
2011-07-10 17:19:09 +04:00
|
|
|
M4_TARGET_VERSION=1.4.16
|
2012-07-13 19:40:35 +04:00
|
|
|
AM_TARGET_VERSION=1.12.2
|
2012-07-02 18:47:04 +04:00
|
|
|
AC_TARGET_VERSION=2.69
|
2012-02-08 20:39:43 +04:00
|
|
|
LT_TARGET_VERSION=2.4.2
|
2010-01-22 19:39:38 +03:00
|
|
|
FLEX_TARGET_VERSION=2.5.35
|
2005-06-22 01:48:50 +04:00
|
|
|
|
2010-06-29 18:32:20 +04:00
|
|
|
#
|
|
|
|
# When running "make distcheck", use these parallelization flags. Can
|
|
|
|
# significantly decrease the time required for "make distcheck" because
|
|
|
|
# that target includes multiple builds of the entire code base.
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTCHECK_MAKE_FLAGS=-j4
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2009-06-25 20:50:53 +04:00
|
|
|
#
|
|
|
|
# Check command line flags
|
|
|
|
#
|
|
|
|
|
|
|
|
# Default to requiring *exact* versions if we're making distribution
|
|
|
|
# tarballs; but higher-than-expected versions are ok for
|
|
|
|
# non-distribution tarballs.
|
|
|
|
dist_target=distcheck
|
2010-06-29 18:32:20 +04:00
|
|
|
distcheck_flags="AM_MAKEFLAGS=$DISTCHECK_MAKE_FLAGS"
|
2009-06-25 20:50:53 +04:00
|
|
|
if test "`basename $0`" = "make_tarball"; then
|
|
|
|
dist_target=dist
|
2010-06-29 18:32:20 +04:00
|
|
|
distcheck_flags=
|
2009-06-25 20:50:53 +04:00
|
|
|
highok=1
|
|
|
|
else
|
|
|
|
highok=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
greekonly=0
|
2010-01-09 04:06:52 +03:00
|
|
|
want_ompi=1
|
2010-09-18 03:04:06 +04:00
|
|
|
autogen_args=
|
2013-09-30 21:19:47 +04:00
|
|
|
distdir=".."
|
2009-06-25 20:50:53 +04:00
|
|
|
while test "$1" != ""; do
|
|
|
|
case $1 in
|
|
|
|
-greekonly) greekonly=1 ;;
|
|
|
|
--greekonly) greekonly=1 ;;
|
|
|
|
-highok) highok=1 ;;
|
|
|
|
--highok) highok=1 ;;
|
2010-01-09 04:06:52 +03:00
|
|
|
-no-ompi) want_ompi=0 ;;
|
|
|
|
--no-ompi) want_ompi=0 ;;
|
2010-09-18 03:04:06 +04:00
|
|
|
-autogen-args) autogen_args=$2; shift ;;
|
|
|
|
--autogen-args) autogen_args=$2; shift ;;
|
2013-09-30 21:19:47 +04:00
|
|
|
-distdir) distdir=$2; shift ;;
|
|
|
|
--distdir) distdir=$2; shift ;;
|
2010-09-18 03:04:06 +04:00
|
|
|
*)
|
|
|
|
echo Unrecognized argument: $1
|
|
|
|
exit 1
|
|
|
|
;;
|
2009-06-25 20:50:53 +04:00
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
2005-06-22 01:48:50 +04:00
|
|
|
#
|
|
|
|
# First things first -- check that the auto versions that we have are
|
|
|
|
# the ones that we want.
|
|
|
|
#
|
|
|
|
|
|
|
|
check_gnu_version() {
|
|
|
|
prog="$1"
|
|
|
|
target="$2"
|
|
|
|
|
2006-11-11 05:42:12 +03:00
|
|
|
ver="`$prog --version | head -n 1 | sed -e's/([^)]*)//g' -e's/[^0-9 .][^ ]* / /g' -e's/ //g'`"
|
2010-01-22 19:39:38 +03:00
|
|
|
echo $prog version is $ver
|
2009-06-25 20:50:53 +04:00
|
|
|
|
|
|
|
ver_major=`echo $ver | cut -d. -f1`
|
|
|
|
ver_minor=`echo $ver | cut -d. -f2`
|
|
|
|
ver_release=`echo $ver | cut -d. -f3`
|
|
|
|
if test "$ver_release" = ""; then
|
|
|
|
ver_release=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
target_major=`echo $target | cut -d. -f1`
|
|
|
|
target_minor=`echo $target | cut -d. -f2`
|
|
|
|
target_release=`echo $target | cut -d. -f3`
|
|
|
|
if test "$target_release" = ""; then
|
|
|
|
target_release=0
|
|
|
|
fi
|
|
|
|
|
2010-01-06 03:10:09 +03:00
|
|
|
# Gah -- Libtool released version 2.2.6b, the "b" of which totally
|
|
|
|
# screws up the -lt and -gt comparisons, below. So strip out any
|
|
|
|
# trailing letters in the target_release and ver_release variables
|
|
|
|
# -- if they don't match, we'll just get a "they don't match
|
|
|
|
# somehow" kind of message (because I'm not going to code up a
|
|
|
|
# complex/clever alphanumeric lower/higher comparison thingy).
|
|
|
|
# Sigh.
|
2012-08-10 20:31:39 +04:00
|
|
|
ver_release=`echo $ver_release | sed 's/[A-Za-z]//g'`
|
|
|
|
target_release=`echo $target_release | sed 's/[A-Za-z]//g'`
|
2010-01-06 03:10:09 +03:00
|
|
|
|
2009-06-25 20:50:53 +04:00
|
|
|
result=same
|
2005-06-22 01:48:50 +04:00
|
|
|
if test "$ver" != "$target"; then
|
2009-06-25 20:50:53 +04:00
|
|
|
if test "$ver_major" -lt "$target_major"; then
|
|
|
|
result=low
|
|
|
|
elif test "$ver_major" = "$target_major" -a "$ver_minor" -lt "$target_minor"; then
|
|
|
|
result=low
|
|
|
|
elif test "$ver_major" = "$target_major" -a "$ver_minor" = "$target_minor" -a "$ver_release" -lt "$target_release"; then
|
|
|
|
result=low
|
|
|
|
elif test "$ver_major" -gt "$target_major"; then
|
|
|
|
result=high
|
|
|
|
elif test "$ver_major" = "$target_major" -a "$ver_minor" -gt "$target_minor"; then
|
|
|
|
result=high
|
2012-08-10 20:31:39 +04:00
|
|
|
elif test "$ver_major" = "$target_major" -a "$ver_minor" = "$target_minor" -a "$ver_release" = "$target_release"; then
|
|
|
|
result=same
|
2009-06-25 20:50:53 +04:00
|
|
|
elif test "$ver_major" = "$target_major" -a "$ver_minor" = "$target_minor" -a "$ver_release" -gt "$target_release"; then
|
|
|
|
result=high
|
2012-08-10 20:31:39 +04:00
|
|
|
elif test "$ver_major" = "$target_major" -a "$ver_minor" = "$target_minor" -a "$ver_release" -lt "$target_release"; then
|
|
|
|
result=low
|
2009-06-25 20:50:53 +04:00
|
|
|
else
|
|
|
|
result=unknown
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$result" = "low"; then
|
2005-06-22 01:48:50 +04:00
|
|
|
cat <<EOF
|
2009-06-25 20:50:53 +04:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
ERROR: Program "$prog" does not have a high enough version:
|
2005-06-22 01:48:50 +04:00
|
|
|
Found: $ver
|
2009-06-25 20:50:53 +04:00
|
|
|
Expected: $target
|
2005-06-22 01:48:50 +04:00
|
|
|
|
|
|
|
Expected versions:
|
2008-05-21 00:23:31 +04:00
|
|
|
m4: $M4_TARGET_VERSION
|
2005-06-22 01:48:50 +04:00
|
|
|
Automake: $AM_TARGET_VERSION
|
|
|
|
Autoconf: $AC_TARGET_VERSION
|
|
|
|
Libtool: $LT_TARGET_VERSION
|
2010-01-22 19:39:38 +03:00
|
|
|
Flex: $FLEX_TARGET_VERSION
|
2005-06-22 01:48:50 +04:00
|
|
|
|
|
|
|
Either change this script to match the found version, or install
|
|
|
|
the correct version of the tools.
|
2009-06-25 20:50:53 +04:00
|
|
|
----------------------------------------------------------------------
|
2005-06-22 01:48:50 +04:00
|
|
|
EOF
|
|
|
|
exit 1
|
2009-06-25 20:50:53 +04:00
|
|
|
|
2010-01-06 03:10:09 +03:00
|
|
|
elif test "$result" = "high"; then
|
2009-06-25 20:50:53 +04:00
|
|
|
if test "$highok" = "0"; then
|
|
|
|
cat <<EOF
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
ERROR: Program "$prog" has a higher version than expected:
|
|
|
|
Found: $ver
|
|
|
|
Expected: $target
|
|
|
|
|
|
|
|
Expected versions:
|
|
|
|
m4: $M4_TARGET_VERSION
|
|
|
|
Automake: $AM_TARGET_VERSION
|
|
|
|
Autoconf: $AC_TARGET_VERSION
|
|
|
|
Libtool: $LT_TARGET_VERSION
|
2010-01-22 19:39:38 +03:00
|
|
|
Flex: $FLEX_TARGET_VERSION
|
2009-06-25 20:50:53 +04:00
|
|
|
|
|
|
|
Either change this script to match the found version, or install
|
|
|
|
the correct version of the tools.
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
EOF
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
cat <<EOF
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
WARNING: Program "$prog" has a higher version than expected:
|
|
|
|
Found: $ver
|
|
|
|
Expected: $target
|
|
|
|
|
|
|
|
Expected versions:
|
|
|
|
m4: $M4_TARGET_VERSION
|
|
|
|
Automake: $AM_TARGET_VERSION
|
|
|
|
Autoconf: $AC_TARGET_VERSION
|
|
|
|
Libtool: $LT_TARGET_VERSION
|
2010-01-22 19:39:38 +03:00
|
|
|
Flex: $FLEX_TARGET_VERSION
|
2009-06-25 20:50:53 +04:00
|
|
|
|
|
|
|
This is *usually* ok, but this script is going to sleep for 5 seconds
|
|
|
|
to give you the chance to quit before doing anything.
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
EOF
|
|
|
|
sleep 5
|
|
|
|
fi
|
2010-01-06 03:10:09 +03:00
|
|
|
|
|
|
|
elif test "$result" = "unknown"; then
|
|
|
|
cat <<EOF
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
ERROR: Program "$prog" does not have the correct version:
|
|
|
|
Found: $ver
|
|
|
|
Expected: $target
|
|
|
|
|
|
|
|
Expected versions:
|
|
|
|
m4: $M4_TARGET_VERSION
|
|
|
|
Automake: $AM_TARGET_VERSION
|
|
|
|
Autoconf: $AC_TARGET_VERSION
|
|
|
|
Libtool: $LT_TARGET_VERSION
|
2010-01-22 19:39:38 +03:00
|
|
|
Flex: $FLEX_TARGET_VERSION
|
2010-01-06 03:10:09 +03:00
|
|
|
|
|
|
|
Either change this script to match the found version, or install
|
|
|
|
the correct version of the tools.
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
EOF
|
|
|
|
exit 1
|
2009-06-25 20:50:53 +04:00
|
|
|
fi
|
2010-01-06 03:10:09 +03:00
|
|
|
|
2005-06-22 01:48:50 +04:00
|
|
|
}
|
|
|
|
|
2005-12-01 23:59:11 +03:00
|
|
|
#
|
|
|
|
# Subroutine to actually make a tarball
|
|
|
|
#
|
|
|
|
|
|
|
|
make_tarball() {
|
|
|
|
#
|
|
|
|
# Autogen
|
|
|
|
#
|
2010-09-18 03:04:06 +04:00
|
|
|
echo "*** Running autogen $autogen_args..."
|
2008-08-15 01:23:25 +04:00
|
|
|
rm -f success
|
2010-01-09 04:06:52 +03:00
|
|
|
if test "$want_ompi" = "1" ; then
|
2010-09-18 03:04:06 +04:00
|
|
|
(./autogen.pl $autogen_args 2>&1 && touch success) | tee auto.out
|
2010-01-09 04:06:52 +03:00
|
|
|
else
|
2010-09-23 17:21:00 +04:00
|
|
|
(./autogen.pl --no-ompi $autogen_args 2>&1 && touch success) | tee auto.out
|
2010-01-09 04:06:52 +03:00
|
|
|
fi
|
2008-08-15 01:23:25 +04:00
|
|
|
if test ! -f success; then
|
2005-12-01 23:59:11 +03:00
|
|
|
echo "Autogen failed. Aborting"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Configure
|
|
|
|
#
|
|
|
|
echo "*** Running configure..."
|
2008-08-15 01:23:25 +04:00
|
|
|
rm -f success
|
|
|
|
(./configure --enable-dist 2>&1 && touch success) | tee config.out
|
|
|
|
if test ! -f success; then
|
2005-12-01 23:59:11 +03:00
|
|
|
echo "Configure failed. Aborting"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2010-01-22 19:39:38 +03:00
|
|
|
#
|
|
|
|
# Remove all generated *_lex.c files so that we ensure to invoke
|
|
|
|
# flex from here in this script (to ensure that we're using a good
|
|
|
|
# version of flex, and not picking up random *_lex.c files that
|
|
|
|
# happened to be in the tree already).
|
|
|
|
#
|
|
|
|
echo "*** Removing old generated flex files..."
|
2012-04-18 18:48:26 +04:00
|
|
|
chmod -R a+rw .
|
2010-01-22 19:39:38 +03:00
|
|
|
find . -name \*_lex.c -exec rm -f {} \; -print
|
|
|
|
|
2005-12-01 23:59:11 +03:00
|
|
|
#
|
|
|
|
# make tarball
|
|
|
|
#
|
2009-06-25 20:50:53 +04:00
|
|
|
echo "*** Running make $dist_target..."
|
2005-12-01 23:59:11 +03:00
|
|
|
save_LD=$LD_LIBRARY_PATH
|
|
|
|
LD_LIBRARY_PATH=
|
2008-08-15 01:23:25 +04:00
|
|
|
rm -f success
|
2010-06-29 18:32:20 +04:00
|
|
|
(make $distcheck_flags $dist_target 2>&1 && touch success) | tee dist.out
|
2008-08-15 01:23:25 +04:00
|
|
|
if test ! -f success; then
|
2009-06-25 20:50:53 +04:00
|
|
|
echo "Make $dist_target failed. Aborting"
|
2005-12-01 23:59:11 +03:00
|
|
|
exit 1
|
|
|
|
fi
|
2008-08-15 01:23:25 +04:00
|
|
|
rm -f success
|
2005-12-01 23:59:11 +03:00
|
|
|
LD_LIBRARY_PATH=$save_LD
|
|
|
|
|
|
|
|
#
|
|
|
|
# move
|
|
|
|
#
|
|
|
|
echo "*** Moving tarballs..."
|
2013-09-30 21:19:47 +04:00
|
|
|
mv openmpi-* $distdir
|
2005-12-01 23:59:11 +03:00
|
|
|
|
|
|
|
echo "*** All done"
|
|
|
|
}
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# main
|
|
|
|
#########################################################################
|
|
|
|
|
2010-06-29 18:32:20 +04:00
|
|
|
start=`date`
|
|
|
|
echo "*** Start time: $start"
|
|
|
|
|
2010-01-22 19:39:38 +03:00
|
|
|
echo "*** Checking tools versions..."
|
2008-05-21 00:23:31 +04:00
|
|
|
check_gnu_version m4 $M4_TARGET_VERSION
|
2005-06-22 01:48:50 +04:00
|
|
|
check_gnu_version automake $AM_TARGET_VERSION
|
|
|
|
check_gnu_version autoconf $AC_TARGET_VERSION
|
|
|
|
check_gnu_version libtool $LT_TARGET_VERSION
|
2010-01-22 19:39:38 +03:00
|
|
|
# Windows needs a recent version of flex; old versions don't generate
|
|
|
|
# Windows-friendly *_lex.c files.
|
|
|
|
check_gnu_version flex $FLEX_TARGET_VERSION
|
2005-06-22 01:48:50 +04:00
|
|
|
|
|
|
|
#
|
2005-12-02 00:01:15 +03:00
|
|
|
# Verify that we're in a top Open MPI dir
|
2005-06-22 01:48:50 +04:00
|
|
|
#
|
|
|
|
echo "*** Checking to ensure in top-level Open MPI directory..."
|
2010-09-18 03:04:06 +04:00
|
|
|
if test -f VERSION -a -f configure.ac -a -f config/opal_get_version.m4 ; then
|
2005-06-22 01:48:50 +04:00
|
|
|
happy=1
|
|
|
|
else
|
|
|
|
echo "Do not appear to be in an Open MPI top directory. Abort!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Do svn up and all that
|
|
|
|
#
|
|
|
|
|
2008-08-07 23:20:40 +04:00
|
|
|
if test -d .svn; then
|
2010-07-28 21:22:04 +04:00
|
|
|
echo "*** Removing old VERSION file..."
|
|
|
|
rm -f VERSION
|
2012-02-14 03:16:13 +04:00
|
|
|
echo "*** Restoring pristine VERSION file..."
|
|
|
|
svn revert VERSION
|
2008-08-07 23:20:40 +04:00
|
|
|
echo "*** Running svn up..."
|
|
|
|
svn up
|
|
|
|
if test ! "$?" = "0"; then
|
|
|
|
echo "SVN update failed. Aborting"
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-07-28 21:22:04 +04:00
|
|
|
echo "*** Getting svn r number..."
|
|
|
|
svn_r="r`svnversion .`"
|
2008-08-07 23:20:40 +04:00
|
|
|
elif test -d .hg; then
|
2010-07-28 21:22:04 +04:00
|
|
|
echo "*** Removing old VERSION file..."
|
|
|
|
rm -f VERSION
|
2012-02-14 03:16:13 +04:00
|
|
|
echo "*** Restoring pristine VERSION file..."
|
2008-08-07 23:20:40 +04:00
|
|
|
hg revert VERSION
|
2012-02-14 03:16:13 +04:00
|
|
|
echo "*** Running hg up..."
|
2008-08-07 23:20:40 +04:00
|
|
|
hg up
|
|
|
|
if test ! "$?" = "0"; then
|
2008-08-07 23:48:49 +04:00
|
|
|
echo "HG update failed. Aborting"
|
2008-08-07 23:20:40 +04:00
|
|
|
exit 1
|
|
|
|
fi
|
2010-07-28 21:22:04 +04:00
|
|
|
echo "*** Getting hg version number..."
|
2012-02-14 03:16:13 +04:00
|
|
|
svn_r=hg`hg tip | grep ^changeset: | head -n 1 | cut -d: -f3`
|
2013-03-27 21:48:09 +04:00
|
|
|
elif test -d .git; then
|
|
|
|
echo "*** Removing old VERSION file..."
|
|
|
|
rm -f VERSION
|
|
|
|
echo "*** Restoring pristine VERSION file..."
|
|
|
|
git checkout VERSION
|
|
|
|
echo "*** Getting git version number..."
|
2013-03-27 21:51:11 +04:00
|
|
|
svn_r=git`git log -1 --oneline | head -1 | cut -d' ' -f1`
|
2012-02-14 03:16:13 +04:00
|
|
|
fi
|
|
|
|
echo " Repo rev number: $svn_r"
|
|
|
|
if test "$svn_r" = ""; then
|
|
|
|
echo "Somehow the repo rev number is empty. Abort!"
|
|
|
|
exit 1
|
|
|
|
elif test "`echo $svn_r | grep ' '`" != ""; then
|
|
|
|
echo "Somehow the repo rev number has a space in it -- bad!"
|
|
|
|
exit 1
|
2005-06-22 01:48:50 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
2008-08-07 23:20:40 +04:00
|
|
|
# Ditch "svn/hg" from all version numbers
|
2005-06-22 01:48:50 +04:00
|
|
|
#
|
2012-02-14 03:16:13 +04:00
|
|
|
echo "*** Removing svn version numbers from VERSION..."
|
2008-08-07 23:20:40 +04:00
|
|
|
version_files=VERSION
|
|
|
|
release_date=`date '+%b %d, %Y'`
|
2012-02-14 03:16:13 +04:00
|
|
|
echo " Release date: $release_date"
|
2005-06-22 01:48:50 +04:00
|
|
|
for file in $version_files; do
|
|
|
|
echo " - $file"
|
2011-02-17 01:53:23 +03:00
|
|
|
sed -e 's/^want_repo_rev=.*/want_repo_rev=0/' \
|
|
|
|
-e 's/^repo_rev=.*/'repo_rev=$svn_r/ \
|
2008-08-07 23:20:40 +04:00
|
|
|
-e "s/^date=.*/date=\"$release_date\"/" \
|
|
|
|
$file > $file.new
|
2005-06-22 01:48:50 +04:00
|
|
|
cp -f $file.new $file
|
|
|
|
rm $file.new
|
|
|
|
done
|
|
|
|
|
|
|
|
#
|
2005-12-01 23:59:11 +03:00
|
|
|
# Make 2 tarballs:
|
2005-06-22 01:48:50 +04:00
|
|
|
#
|
2005-12-01 23:59:11 +03:00
|
|
|
# - one with the greek
|
|
|
|
# - one without the greek
|
2005-06-22 01:48:50 +04:00
|
|
|
#
|
2005-12-01 23:59:11 +03:00
|
|
|
# unless the user specifically said --greekonly, then only make the
|
|
|
|
# greek tarball. Making both tarballs at once allows us to guarantee
|
2005-12-02 00:01:15 +03:00
|
|
|
# to have two tarballs -- one greek and one not -- that have exactly
|
|
|
|
# the same SVN r number (as opposed to, for example, running this
|
|
|
|
# script to make a greek tarball, then running it again to make a
|
|
|
|
# non-greek tarball -- there is a race condition that someone could
|
|
|
|
# commit in the meantime and change the SVN r number in the 2nd
|
|
|
|
# tarball)
|
2005-06-22 01:48:50 +04:00
|
|
|
#
|
|
|
|
|
2005-12-01 23:59:11 +03:00
|
|
|
# First, make greek tarball
|
2005-06-22 01:48:50 +04:00
|
|
|
|
2005-12-01 23:59:11 +03:00
|
|
|
echo "*** Making greek tarball"
|
|
|
|
make_tarball
|
2005-06-22 01:48:50 +04:00
|
|
|
|
2005-12-01 23:59:11 +03:00
|
|
|
# Now if ! --greekonly, make the non-greek tarball
|
2005-06-22 01:48:50 +04:00
|
|
|
|
2009-06-25 20:50:53 +04:00
|
|
|
if test "$greekonly" = "0"; then
|
2005-12-01 23:59:11 +03:00
|
|
|
echo "*** REMOVING ALL GREEK FROM VERSION NUMBERS!!"
|
|
|
|
for file in $version_files; do
|
|
|
|
echo " - $file"
|
|
|
|
sed -e 's/^greek=.*/greek=/' $file > $file.new
|
|
|
|
cp -f $file.new $file
|
|
|
|
rm $file.new
|
|
|
|
done
|
|
|
|
echo "Making non-greek tarball"
|
|
|
|
make_tarball
|
2005-06-22 01:48:50 +04:00
|
|
|
fi
|
|
|
|
|
2009-09-11 19:49:15 +04:00
|
|
|
# Put the VERSION file back the way it was
|
2010-06-17 08:19:42 +04:00
|
|
|
if test -d .svn; then
|
|
|
|
svn revert VERSION
|
|
|
|
elif test -d .hg; then
|
|
|
|
hg revert VERSION
|
2011-02-17 01:53:23 +03:00
|
|
|
elif test -d .git; then
|
2013-04-02 16:05:30 +04:00
|
|
|
git checkout VERSION
|
2010-06-17 08:19:42 +04:00
|
|
|
fi
|
2010-06-29 18:32:20 +04:00
|
|
|
|
|
|
|
echo " "
|
|
|
|
echo "*** Start time: $start"
|
|
|
|
echo "*** Finish time: `date`"
|