1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#! /usr/bin/env bash
# This "bootstrap" script performs various pre-autoreconf actions
# that are required after pulling fresh sources from the repository.
#
# NOTE: THE NTP VERSION NUMBER COMES FROM packageinfo.sh
#
# all other instances of it anywhere in the source base have propagated
# from this one source.
#
# To use the raw sources from the repository, you must have the following
# tools available to you:
#
# 1. Autoconf and Automake.
#
# 2. AutoGen. The repository does *not* contain the files generated from
# the option definition files and it does not contain the libopts
# tear-off/redistributable library.
#
# 3. gunzip. The tear-off library is a gzipped tarball.
#
# 4. lynx. This is used to extract the COPYRIGHT file extracted from
# the html documentation.
#
# 5. bash, ksh, zsh or any POSIX compliant shell to run this script.
#
set -e
AUTORECONF=${AUTORECONF:-autoreconf}
#. ./packageinfo.sh
scripts/genver
cp bincheck.mf sntp/
#rm -rf sntp/libopts*
#gunzip -c $(autoopts-config --libsrc) | (
# cd sntp
# tar -xvf -
# mv libopts-*.*.* libopts )
#prog_opt_files=$(
# egrep -l '^prog.name' $(
# find * -type f -name *.def|fgrep -v /SCCS/))
incdir=${PWD}/include
#for f in ${prog_opt_files}
#do
# ( cd $(dirname ${f})
# echo "Running autogen on $f..."
# autogen -L${incdir} $(basename ${f}) )
#done
(cd sntp && ${AUTORECONF} -i -v)
${AUTORECONF} -i -v
|