path: root/build/autogen.sh
diff options
authorMartin Matuska <mm@FreeBSD.org>2016-05-10 21:12:32 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-05-10 21:12:32 +0000
commit43341e7cf4b9eee3ead77da04edc14370fe5b166 (patch)
tree922dcf836eb124c01bfdb418a5356b5de8859fb1 /build/autogen.sh
parentc5f9310ca93fd77fba0ac435f0576225cf67689c (diff)
Trim libarchive/dist using FREEBSD-Xlist
Notes: svn path=/vendor/libarchive/dist/; revision=299390
Diffstat (limited to 'build/autogen.sh')
1 files changed, 0 insertions, 67 deletions
diff --git a/build/autogen.sh b/build/autogen.sh
deleted file mode 100755
index e73162465d2a..000000000000
--- a/build/autogen.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-export PATH
-# Start from one level above the build directory
-if [ -f version ]; then
- cd ..
-if [ \! -f build/version ]; then
- echo "Can't find source directory"
- exit 1
-# BSD make's "OBJDIR" support freaks out the automake-generated
-# Makefile. Effectively disable it.
-# Start from the build directory, where the version file is located
-if [ -f build/version ]; then
- cd build
-if [ \! -f version ]; then
- echo "Can't find version file"
- exit 1
-# Update the build number in the 'version' file.
-# Separate number from additional alpha/beta/etc marker
-MARKER=`cat version | sed 's/[0-9.]//g'`
-# Bump the number
-VN=`cat version | sed 's/[^0-9.]//g'`
-# Build out the string.
-VS="$(($VN/1000000)).$(( ($VN/1000)%1000 )).$(( $VN%1000 ))$MARKER"
-cd ..
-# Clean up the source dir as much as we can.
-/bin/sh build/clean.sh
-# Substitute the versions into Libarchive's archive.h and archive_entry.h
-perl -p -i -e "s/^(#define\tARCHIVE_VERSION_NUMBER).*/\$1 $VN/" libarchive/archive.h
-perl -p -i -e "s/^(#define\tARCHIVE_VERSION_NUMBER).*/\$1 $VN/" libarchive/archive_entry.h
-perl -p -i -e "s/^(#define\tARCHIVE_VERSION_STRING).*/\$1 \"libarchive $VS\"/" libarchive/archive.h
-# Substitute versions into configure.ac as well
-perl -p -i -e 's/(m4_define\(\[LIBARCHIVE_VERSION_S\]),.*\)/$1,['"$VS"'])/' configure.ac
-perl -p -i -e 's/(m4_define\(\[LIBARCHIVE_VERSION_N\]),.*\)/$1,['"$VN"'])/' configure.ac
-# Remove developer CFLAGS if a release build is being made
-if [ -n "${MAKE_LIBARCHIVE_RELEASE}" ]; then
- perl -p -i -e "s/^(DEV_CFLAGS.*)/# \$1/" Makefile.am
-set -xe
-aclocal -I build/autoconf
-# Note: --automake flag needed only for libtoolize from
-# libtool 1.5.x; in libtool 2.2.x it is a synonym for --quiet
-case `uname` in
-Darwin) glibtoolize --automake -c;;
-*) libtoolize --automake -c;;
-automake -a -c