mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
handle bind/bind9 being a git repo
This commit is contained in:
54
util/bind.sh
54
util/bind.sh
@@ -97,34 +97,40 @@ case $# in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Delete all previous bind stuff
|
if test -d bind/bind9/.git
|
||||||
rm -rf bind
|
then
|
||||||
|
cp util/Makefile.git bind/Makefile.in
|
||||||
|
cd bind/bind9
|
||||||
|
git checkout $BINDTAG && git pull
|
||||||
|
else
|
||||||
|
# Delete all previous bind stuff
|
||||||
|
rm -rf bind
|
||||||
|
|
||||||
# Make and move to our directory for all things bind
|
# Make and move to our directory for all things bind
|
||||||
mkdir $binddir
|
mkdir $binddir
|
||||||
cp util/Makefile.bind.in bind/Makefile.in
|
cp util/Makefile.bind.in bind/Makefile.in
|
||||||
cd $binddir
|
cd $binddir
|
||||||
|
|
||||||
# Get the bind version file and move it to version.tmp
|
# Get the bind version file and move it to version.tmp
|
||||||
git archive --format tar $remote $BINDTAG version | tar xf -
|
git archive --format tar $remote $BINDTAG version | tar xf -
|
||||||
mv version version.tmp
|
mv version version.tmp
|
||||||
|
|
||||||
# Get the bind release kit shell script
|
# Get the bind release kit shell script
|
||||||
git archive --format tar $remote master:util/ | tar xf - kit.sh
|
git archive --format tar $remote master:util/ | tar xf - kit.sh
|
||||||
|
|
||||||
# Create the bind tarball, which has the side effect of
|
# Create the bind tarball, which has the side effect of
|
||||||
# setting up the bind directory we will use for building
|
# setting up the bind directory we will use for building
|
||||||
# the export libraries
|
# the export libraries
|
||||||
echo Creating tarball for $BINDTAG
|
echo Creating tarball for $BINDTAG
|
||||||
sh kit.sh $remote $SNAP $BINDTAG $binddir
|
sh kit.sh $remote $SNAP $BINDTAG $binddir
|
||||||
|
|
||||||
. ./version.tmp
|
. ./version.tmp
|
||||||
|
|
||||||
version=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
|
version=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
|
||||||
bindsrcdir=bind-$version
|
bindsrcdir=bind-$version
|
||||||
mm=${MAJORVER}.${MINORVER}
|
mm=${MAJORVER}.${MINORVER}
|
||||||
|
|
||||||
# move the tar file to a known place for use by the make dist command
|
|
||||||
echo Moving tar file to bind.tar.gz for distribution
|
|
||||||
mv bind-${mm}*.tar.gz bind.tar.gz
|
|
||||||
|
|
||||||
|
# move the tar file to a known place for use by the make dist command
|
||||||
|
echo Moving tar file to bind.tar.gz for distribution
|
||||||
|
mv bind-${mm}*.tar.gz bind.tar.gz
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user