8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

Erik's script producing source bundle including configure script. Invoked via: make srctarfile

This commit is contained in:
skidder 2004-08-20 05:11:55 +00:00
parent ac85dfb981
commit 46a15ac2a2
2 changed files with 56 additions and 8 deletions

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.firebird,v 1.56 2004-05-10 07:19:16 brodsom Exp $
# $Id: Makefile.in.firebird,v 1.57 2004-08-20 05:11:51 skidder Exp $
#
ROOT=..
@ -497,11 +497,18 @@ $(FIREBIRD)/misc/% :: $(BLD_ROOT)/install/misc/%
#___________________________________________________________________________
#
.PHONY: install package packages dist
.PHONY: install package packages dist srctarfile
install package packages dist:
$(MAKE) -f $(GEN_ROOT)/Makefile.install $@
SrcTarFile=Firebird$(ArchPrefix)-$(Version).tar.bz2
srctarfile: $(SrcTarFile)
$(SrcTarFile) :
$(GEN_ROOT)/../src/misc/src_bundle.sh
#___________________________________________________________________________
#

View File

@ -1,6 +1,47 @@
FB_VERSION=1.5.1.4481
FB_REVISION=R1_5_1
cvs -z9 -d :ext:skidder@cvs.firebird.sourceforge.net:/cvsroot/firebird co -r $FB_REVISION firebird2
mv firebird2 firebird-$FB_VERSION
find firebird-$FB_VERSION -name CVS -exec rm -rf '{}' ';'
tar -cjf firebird-$FB_VERSION.tar.bz2 firebird-$FB_VERSION
#/bin/sh
#
# Script to checkout a clean copy of the sourcecode from CVS
# and prepare it as an official "source distribution"
#
# Determine root of local checkout
SRCROOT=`dirname $0`/../..
# Set the CVS root from the local checkout if possible
ROOT=`cat $SRCROOT/CVS/Root`
if [ "x$ROOT" == 'x' ]; then
ROOT=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/firebird"
fi
# Set the tag or branch based on the current checkout, if possible
CVSTAG='$Name: not supported by cvs2svn $'
TAG=`echo $CVSTAG | sed -e 's/\\$Name: not supported by cvs2svn $/\1/' | sed -e 's/ //'`
if [ "x$TAG" == 'x' ]; then
TAG="HEAD"
fi
MODULE=firebird2
NAME=firebird
rm -rf $MODULE
echo "Checking out $MODULE from $ROOT using $TAG"
cvs -z9 -d $ROOT export -r $TAG $MODULE
# Load version information from the new checkout
source $MODULE/src/misc/writeBuildNum.sh
DIRNAME="$NAME-$PRODUCT_VER_STRING"
echo "Creating tarball for $DIRNAME"
rm -rf $DIRNAME
mv $MODULE $DIRNAME
cd $DIRNAME
echo "Generating configure script"
NOCONFIGURE=1 . ./autogen.sh > /dev/null
rm -Rf autom4te.cache
rm -f aclocal.m4
cd ..
tar -cjf $DIRNAME.tar.bz2 $DIRNAME
echo "New tarball is $DIRNAME.tar.bz2"
rm -rf $DIRNAME