mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
329d6e3fbc
Files in a single new distro/ dir allow apkg to build BIRD packages for various distros directly from upstream sources as well as from upstream archives. Please see distro/README.md for more detail as well as apkg docs: https://apkg.rtfd.io I've used these files to build bird-2.0.8 on all currently supported releases of following distros: * Debian * Ubuntu * Fedora * CentOS * openSUSE Please note that latest apkg with accumulated fixes for bird is needed: https://gitlab.nic.cz/packaging/apkg/-/merge_requests/35
39 lines
908 B
Bash
Executable File
39 lines
908 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This a modified version of gendist script which generates development
|
|
# archive (tarball) without docs from current sources.
|
|
|
|
BIRD_VERSION=`grep 'BIRD_VERSION \"' sysdep/config.h | sed '/BIRD_VERSION/!d;s/^.*"\(.*\)"$/\1/'`
|
|
# differentiate dev tarballs from upstream ones
|
|
GIT_HASH=$(git rev-parse --short HEAD )
|
|
TIMESTAMP=$(date -u +'%s' 2>/dev/null)
|
|
VERSION=$BIRD_VERSION.$TIMESTAMP.$GIT_HASH
|
|
|
|
REL=bird-$VERSION
|
|
T=/tmp/bird
|
|
AC=autoreconf
|
|
|
|
set -e
|
|
|
|
# prepare output dir
|
|
rm -rf $T/$REL
|
|
mkdir -p $T/$REL
|
|
|
|
$AC
|
|
|
|
# cleanup
|
|
find . -name "*~" -exec rm -f '{}' '+'
|
|
rm -rf autom4te*cache
|
|
|
|
echo Building $REL
|
|
cp -a . $T/$REL
|
|
echo Generating ChangeLog
|
|
git log >$T/$REL/ChangeLog
|
|
rm -f $T/$REL/bird.conf*
|
|
rm -rf $T/$REL/.git/
|
|
rm -rf `find $T/$REL -name CVS -o -name tmp` $T/$REL/{misc,rfc,doc/slides,doc/slt2001,doc/old,doc/*.out}
|
|
( cd $T ; tar czvvf $REL.tar.gz $REL )
|
|
rm -rf $T/$REL
|
|
|
|
echo $T/$REL.tar.gz
|