vlmcsd/hotbird64-mass-build/make_hurd

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-06-06 04:36:00 +02:00
#!/bin/bash
2016-11-16 05:12:36 +01:00
export VLMCSD_VERSION=$(git describe)
2016-06-06 04:36:00 +02:00
export VERBOSE=3
export DNS_PARSER=OS
2016-10-14 07:28:23 +02:00
cd "$( dirname "$0" )"
make -C .. clean
BINDIR="../bin"
MANDIR="../man"
cd ../src
2016-06-06 04:36:00 +02:00
MAKEFLAGS="-B -j1"
export CC=gcc
CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
LF="-fuse-ld=gold -lresolv -Wl,-z,norelro,--hash-style=gnu,--build-id=none"
2016-10-14 07:28:23 +02:00
make $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-hurd-x86-glibc PROGRAM_NAME=$BINDIR/vlmcsd-hurd-x86-glibc CLIENT_NAME=$BINDIR/vlmcs-hurd-x86-glibc CFLAGS="$CF" LDFLAGS="$LF" allmulti
2016-06-06 04:36:00 +02:00
2016-10-14 07:28:23 +02:00
cd $BINDIR
2016-06-06 04:36:00 +02:00
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
cp -af vlmcsd-hurd-x86-glibc /usr/local/sbin/vlmcsd
cp -af vlmcs-hurd-x86-glibc /usr/local/bin/vlmcs
2016-10-14 07:28:23 +02:00
cd $MANDIR
2016-06-06 04:36:00 +02:00
# Copy man pages
mkdir -p /usr/local/man/man1 2>/dev/null
mkdir -p /usr/local/man/man5 2>/dev/null
mkdir -p /usr/local/man/man8 2>/dev/null
mkdir -p /usr/local/man/man7 2>/dev/null
cp -af vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
cp -af vlmcsd.7 /usr/local/man/man7/
cp -af vlmcsd.8 /usr/local/man/man8/
2016-10-14 07:28:23 +02:00
rm -f vlmcsdmulti vlmcsd vlmcs 2>/dev/null
2016-06-06 04:36:00 +02:00
cp -af vlmcsd.ini.5 /usr/local/man/man5/
bzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
2016-10-14 07:28:23 +02:00
cd $BINDIR
2016-06-06 04:36:00 +02:00
# Copy everything to distribution server
2016-10-14 07:28:23 +02:00
scp -p * root@ubuntu64.internal:x/binaries/Hurd/intel/
2016-06-06 04:36:00 +02:00