diff options
author | unknown <tomas@mc05.(none)> | 2004-04-29 20:25:00 +0200 |
---|---|---|
committer | unknown <tomas@mc05.(none)> | 2004-04-29 20:25:00 +0200 |
commit | 9d3d017c6c6816854b9ab72e3e8e711ec417352a (patch) | |
tree | ca5b0ac06bc2ae555cd4cbae1bd351429fa9986f | |
parent | a8dfb78df08772c2adda57376b4f689f0321b7b5 (diff) | |
download | mariadb-git-9d3d017c6c6816854b9ab72e3e8e711ec417352a.tar.gz |
configure.in:
added configure options PACKAGE and VERSION for ndb
GuessConfig.sh:
added options for PACKAGE and VERSION
Epilogue.mk:
Added target distdir
ndb/Epilogue.mk:
Added target distdir
ndb/config/GuessConfig.sh:
added options for PACKAGE and VERSION
configure.in:
added configure options PACKAGE and VERSION for ndb
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | ndb/Epilogue.mk | 27 | ||||
-rwxr-xr-x | ndb/config/GuessConfig.sh | 38 |
3 files changed, 53 insertions, 13 deletions
diff --git a/configure.in b/configure.in index 6ccbf087b91..c9738ed63a3 100644 --- a/configure.in +++ b/configure.in @@ -2757,6 +2757,7 @@ EOF no) flag="-R" ;; *) flag="-D" ;; esac + flag="$flag --VERSION=$VERSION --PACKAGE=$PACKAGE" (cd ndb && ./configure $flag) \ || AC_MSG_ERROR([could not configure NDB Cluster]) echo "END OF NDB CLUSTER CONFIGURATION" diff --git a/ndb/Epilogue.mk b/ndb/Epilogue.mk index 89cd4034208..7a4d1485d6c 100644 --- a/ndb/Epilogue.mk +++ b/ndb/Epilogue.mk @@ -851,3 +851,30 @@ ebrowse: DUMMY cd $(NDB_TOP); find . -name "*.hpp" -or -name "*.cpp" -or -name "*.h" -or -name "*.c" > tmpfile~ cd $(NDB_TOP); ebrowse --file tmpfile~ cd $(NDB_TOP); rm -f tmpfile~ + +DISTFILES = $(shell /bin/sh SrcDist.sh) + +srcdir = $(NDB_TOP) +top_distdir = $(NDB_TOP)/.. +mkinstalldirs := /bin/sh ../mkinstalldirs +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)/ndb + +distdir: $(DISTFILES) + $(mkinstalldirs) $(distdir) + @list='$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + echo $(distdir)$$dir; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done diff --git a/ndb/config/GuessConfig.sh b/ndb/config/GuessConfig.sh index 6cbb50a09e4..d2d8446c704 100755 --- a/ndb/config/GuessConfig.sh +++ b/ndb/config/GuessConfig.sh @@ -70,28 +70,40 @@ then TERMCAP_LIB=termcap fi -# Allow for selecting GCC, but must be 2nd parameter -if [ $# -gt 1 -a "$2" = "-GCC" ] -then - NDB_COMPILER=GCC -fi +# defaults +NDB_VERSION=DEBUG +PACKAGE= +VERSION= + +parse_arguments() { + for arg do + case "$arg" in + -GCC) NDB_COMPILER=GCC ;; + -R) NDB_VERSION=RELEASE ;; + -D) NDB_VERSION=DEBUG ;; + --PACKAGE=*) PACKAGE=`echo "$arg" | sed -e "s;--PACKAGE=;;"` ;; + --VERSION=*) VERSION=`echo "$arg" | sed -e "s;--VERSION=;;"` ;; + *) + echo "Unknown argument '$arg'" + exit 1 + ;; + esac + done +} + +parse_arguments "$@" ( echo "# This file was automatically generated `date`" echo "NDB_OS := $NDB_OS" echo "NDB_ARCH := $NDB_ARCH" echo "NDB_COMPILER := $NDB_COMPILER" - - if [ $# -gt 0 -a "$1" = "-R" ] - then - echo "NDB_VERSION := RELEASE" - else - echo "NDB_VERSION := DEBUG" - fi - + echo "NDB_VERSION := $NDB_VERSION" echo "NDB_SCI := $NDB_SCI" echo "NDB_ODBC := $NDB_ODBC" echo "TERMCAP_LIB := $TERMCAP_LIB" + echo "PACKAGE := $PACKAGE" + echo "VERSION := $VERSION" ) > $NDB_TOP/config/config.mk exit 0 |