n2n/scripts/hack_fakeautoconf.sh
Hamish Coleman 267b297150 Switch build date to use the last commit time
This reduces binary changes if the same commit version is re-built
2023-05-08 16:46:01 +01:00

23 lines
410 B
Bash
Executable File

#!/bin/sh
#
# Specifically for windows, where installing autoconf looks suspiciously
# like boiling the ocean.
cat >config.mak <<EOF
CC=gcc
AR=ar
CFLAGS=$CFLAGS -g -O2 -I./include
LDFLAGS=$LDFLAGS -L.
LDLIBS_EXTRA=$LDLIBS
EOF
cat >tools/config.mak <<EOF
TOOLS_ADDITIONAL=
EOF
cat <<EOF >include/config.h
#define PACKAGE_VERSION "FIXME"
#define PACKAGE_OSNAME "FIXME"
#define PACKAGE_BUILDDATE "$(date)"
EOF