From 7f3d76a05de1ca8c7b795e38262f1df75e31d975 Mon Sep 17 00:00:00 2001 From: Noah Slater Date: Sat, 20 Dec 2008 21:10:08 +0000 Subject: more simplifications git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@728344 13f79535-47bb-0310-9956-ffa450edef68 --- authors.xml | 15 --- bootstrap | 169 ++++++--------------------- build-aux/config.guess_2008-06-07.gz | Bin 0 -> 13593 bytes build-aux/config.sub_2008-06-07.gz | Bin 0 -> 9786 bytes build-contrib/ac_check_curl.m4_2008-04-12.gz | Bin 944 -> 0 bytes build-contrib/ac_check_icu.m4_2008-06-07.gz | Bin 956 -> 0 bytes build-contrib/config.guess_2008-06-07.gz | Bin 13593 -> 0 bytes build-contrib/config.sub_2008-06-07.gz | Bin 9786 -> 0 bytes m4/ac_check_curl.m4_2008-04-12.gz | Bin 0 -> 944 bytes m4/ac_check_icu.m4_2008-06-07.gz | Bin 0 -> 956 bytes 10 files changed, 35 insertions(+), 149 deletions(-) delete mode 100644 authors.xml create mode 100644 build-aux/config.guess_2008-06-07.gz create mode 100644 build-aux/config.sub_2008-06-07.gz delete mode 100644 build-contrib/ac_check_curl.m4_2008-04-12.gz delete mode 100644 build-contrib/ac_check_icu.m4_2008-06-07.gz delete mode 100644 build-contrib/config.guess_2008-06-07.gz delete mode 100644 build-contrib/config.sub_2008-06-07.gz create mode 100644 m4/ac_check_curl.m4_2008-04-12.gz create mode 100644 m4/ac_check_icu.m4_2008-06-07.gz diff --git a/authors.xml b/authors.xml deleted file mode 100644 index 7eb750dc..00000000 --- a/authors.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - Damien Katz <damien@apache.org> - - - Jan Lehnardt <jan@apache.org> - - - Christopher Lenz <cmlenz@apache.org> - - - Noah Slater <nslater@apache.org> - - diff --git a/bootstrap b/bootstrap index d55333ec..abc7b0f4 100755 --- a/bootstrap +++ b/bootstrap @@ -12,149 +12,50 @@ # License for the specific language governing permissions and limitations under # the License. -# Bootstrap the pristine source ready for distribution. - -SCRIPT_OK=0 -SCRIPT_ERROR=1 - -ACINCLUDE_FILE="acinclude.m4" -ACINCLUDE_IN_FILE="acinclude.m4.in" -ACINCLUDE_TMP_FILE="acinclude.m4.tmp" -AC_CHECK_ICU_COMPRESSED_FILE="build-contrib/ac_check_icu.m4_2008-06-07.gz" -AC_CHECK_CURL_COMPRESSED_FILE="build-contrib/ac_check_curl.m4_2008-04-12.gz" -AUTHORS_FILE="authors.xml" -BUILD_AUX_DIRECTORY="build-aux" -CONFIG_GUESS_COMPRESSED_FILE="build-contrib/config.guess_2008-06-07.gz" -CONFIG_GUESS_FILE="build-aux/config.guess" -CONFIG_SUB_COMPRESSED_FILE="build-contrib/config.sub_2008-06-07.gz" -CONFIG_SUB_FILE="build-aux/config.sub" -M4_DIRECTORY="m4" -M4_AC_CHECK_ICU_FILE="m4/ac_check_icu.m4" -M4_AC_CHECK_CURL_FILE="m4/ac_check_curl.m4" -REPOSITORY_URI="http://svn.apache.org/repos/asf/incubator/couchdb/trunk" - -basename=`basename $0` - get () { variable_name=$1 - echo "changequote(\`[', \`]')" > $ACINCLUDE_TMP_FILE - sed -e "s/m4_//" < $ACINCLUDE_IN_FILE >> $ACINCLUDE_TMP_FILE - echo $variable_name >> $ACINCLUDE_TMP_FILE - if test -x "`which m4 || true`"; then - `which m4` $ACINCLUDE_TMP_FILE | grep -v "^$" || true + echo "changequote(\`[', \`]')" > acinclude.m4.tmp + sed -e "s/m4_//" < acinclude.m4.in >> acinclude.m4.tmp + echo $variable_name >> acinclude.m4.tmp + if test -x "`which gm4 || true`"; then + gm4 acinclude.m4.tmp | grep -v "^$" || true else - if test -x "`which gm4 || true`"; then - `which gm4` $ACINCLUDE_TMP_FILE | grep -v "^$" || true + if test -x "`which m4 || true`"; then + m4 acinclude.m4.tmp | grep -v "^$" || true else echo unknown fi fi - rm -f $ACINCLUDE_TMP_FILE -} - -display_version () { - cat << EOF -$basename - `get LOCAL_PACKAGE_NAME` `get LOCAL_VERSION_PRIMARY` - -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed -under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR -CONDITIONS OF ANY KIND, either express or implied. See the License for the -specific language governing permissions and limitations under the License. -EOF -} - -display_help () { - cat << EOF -Usage: $basename [OPTION]... - -The $basename script bootstraps the pristeen source so that it can be built. - -The exit status is 0 for success or 1 for failure. - -Options: - - -h display a short help message and exit - -v display version information and exit - -Environment variables: - - REVISION manual override for revision information - -Report bugs at <`get LOCAL_BUG_URI`>. -EOF -} - -display_error () { - if test -n "$1"; then - echo $1 >&2 - fi - echo >&2 - echo "Try \`"$basename" -h' for more information." >&2 - exit $SCRIPT_ERROR -} - -generate_acinclude () { - if test -z "$REVISION"; then - REVISION=`\`which svn\` info . 2> /dev/null | awk "/Revision:/{print \\$2}"` - fi - if test -z "`get LOCAL_VERSION_STAGE`" -o -z "$REVISION"; then - sed "s/%release%//" < $ACINCLUDE_IN_FILE > $ACINCLUDE_FILE - else - sed "s/%release%/$REVISION/" < $ACINCLUDE_IN_FILE > $ACINCLUDE_FILE - fi -} - -process_file_collection () { - gunzip -c $CONFIG_GUESS_COMPRESSED_FILE > $CONFIG_GUESS_FILE - gunzip -c $CONFIG_SUB_COMPRESSED_FILE > $CONFIG_SUB_FILE - gunzip -c $AC_CHECK_ICU_COMPRESSED_FILE > $M4_AC_CHECK_ICU_FILE - gunzip -c $AC_CHECK_CURL_COMPRESSED_FILE > $M4_AC_CHECK_CURL_FILE -} - -run_command_collection () { - if test -x "`which glibtoolize || true`"; then - glibtoolize -f -c - else - libtoolize -f -c - fi - aclocal -I m4 - autoheader -f - automake -f -c -a --gnits - autoconf -f - cat << EOF + rm -f acinclude.m4.tmp +} + +if test -z "$REVISION"; then + REVISION=`\`which svn\` info . 2> /dev/null | awk "/Revision:/{print \\$2}"` +fi +if test -z "`get LOCAL_VERSION_STAGE`" -o -z "$REVISION"; then + sed "s/%release%//" < acinclude.m4.in > acinclude.m4 +else + sed "s/%release%/$REVISION/" < acinclude.m4.in > acinclude.m4 +fi + +gunzip -c build-aux/config.guess.gz > build-aux/config.guess +gunzip -c build-aux/config.sub.gz > build-aux/config.sub +gunzip -c m4/ac_check_icu.m4.gz > m4/ac_check_icu.m4 +gunzip -c m4/ac_check_curl.m4.gz > m4/ac_check_curl.m4 + +if test -x "`which glibtoolize || true`"; then + glibtoolize -f -c +else + libtoolize -f -c +fi +aclocal -I m4 +autoheader -f +automake -f -c -a --gnits +autoconf -f + +cat << EOF You have bootstrapped Apache CouchDB, time to relax. Run \`./configure' to configure the source before you install. EOF -} - -parse_script_option_list () { - set +e - options=`getopt hVC $@` - if test ! $? -eq 0; then - display_error - fi - set -e - eval set -- $options - while [ $# -gt 0 ]; do - case "$1" in - -h) shift; display_help; exit $SCRIPT_OK;; - -V) shift; display_version; exit $SCRIPT_OK;; - --) shift; break;; - *) display_error "Unknown option: $1" >&2;; - esac - done - cd `dirname $0` - process_file_collection - generate_acinclude - run_command_collection -} - -parse_script_option_list $@ diff --git a/build-aux/config.guess_2008-06-07.gz b/build-aux/config.guess_2008-06-07.gz new file mode 100644 index 00000000..a4c193f6 Binary files /dev/null and b/build-aux/config.guess_2008-06-07.gz differ diff --git a/build-aux/config.sub_2008-06-07.gz b/build-aux/config.sub_2008-06-07.gz new file mode 100644 index 00000000..1dc0215f Binary files /dev/null and b/build-aux/config.sub_2008-06-07.gz differ diff --git a/build-contrib/ac_check_curl.m4_2008-04-12.gz b/build-contrib/ac_check_curl.m4_2008-04-12.gz deleted file mode 100644 index 020e646f..00000000 Binary files a/build-contrib/ac_check_curl.m4_2008-04-12.gz and /dev/null differ diff --git a/build-contrib/ac_check_icu.m4_2008-06-07.gz b/build-contrib/ac_check_icu.m4_2008-06-07.gz deleted file mode 100644 index 8af50ff9..00000000 Binary files a/build-contrib/ac_check_icu.m4_2008-06-07.gz and /dev/null differ diff --git a/build-contrib/config.guess_2008-06-07.gz b/build-contrib/config.guess_2008-06-07.gz deleted file mode 100644 index a4c193f6..00000000 Binary files a/build-contrib/config.guess_2008-06-07.gz and /dev/null differ diff --git a/build-contrib/config.sub_2008-06-07.gz b/build-contrib/config.sub_2008-06-07.gz deleted file mode 100644 index 1dc0215f..00000000 Binary files a/build-contrib/config.sub_2008-06-07.gz and /dev/null differ diff --git a/m4/ac_check_curl.m4_2008-04-12.gz b/m4/ac_check_curl.m4_2008-04-12.gz new file mode 100644 index 00000000..020e646f Binary files /dev/null and b/m4/ac_check_curl.m4_2008-04-12.gz differ diff --git a/m4/ac_check_icu.m4_2008-06-07.gz b/m4/ac_check_icu.m4_2008-06-07.gz new file mode 100644 index 00000000..8af50ff9 Binary files /dev/null and b/m4/ac_check_icu.m4_2008-06-07.gz differ -- cgit v1.2.3