From: Michael Ow Date: Wed, 16 Nov 2011 22:03:45 +0000 (+0000) Subject: ICU-8911 Add make target releaseDist X-Git-Tag: milestone-59-0-1~4337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3280110b3c1882a90b7fc84358b2f2becde335b2;p=icu ICU-8911 Add make target releaseDist X-SVN-Rev: 30973 --- diff --git a/icu4c/source/Makefile.in b/icu4c/source/Makefile.in index 18bb0e7ccf4..9050e4cefb9 100644 --- a/icu4c/source/Makefile.in +++ b/icu4c/source/Makefile.in @@ -69,7 +69,7 @@ install-recursive clean clean-local clean-recursive distclean \ distclean-local distclean-recursive doc dist dist-local dist-recursive \ check check-local check-recursive clean-recursive-with-twist install-icu \ doc install-doc tests icu4j-data icu4j-data-install update-windows-makefiles xcheck-local xcheck-recursive xperf xcheck xperf-recursive \ -check-exhaustive check-exhaustive-local check-exhaustive-recursive +check-exhaustive check-exhaustive-local check-exhaustive-recursive releaseDist ## Clear suffix list .SUFFIXES : @@ -343,3 +343,18 @@ update-windows-makefiles: config.status # For building a source distribution. distcheck dist-local: $(MAKE) -C . -f config/dist.mk srcdir="$(srcdir)" top_srcdir="$(top_srcdir)" $@ + +ifeq ($(DESTDIR),) +releaseDist: + @echo "Please provide DESTDIR when calling the target releaseDist." +else +releaseDist: install + @echo -n "ICU Version: " > $(DESTDIR)/readme.txt + @echo `./config/icu-config --noverify --version` >> $(DESTDIR)/readme.txt + @echo -n "HOST: " >> $(DESTDIR)/readme.txt + @echo `./config/icu-config --noverify --host` >> $(DESTDIR)/readme.txt + @echo -n "CC Compiler: " >> $(DESTDIR)/readme.txt + @echo `./config/icu-config --noverify --cc` >> $(DESTDIR)/readme.txt + @echo -n "CXX Compiler: " >> $(DESTDIR)/readme.txt + @echo `./config/icu-config --noverify --cxx` >> $(DESTDIR)/readme.txt +endif diff --git a/icu4c/source/config/icu-config-bottom b/icu4c/source/config/icu-config-bottom index 53a9062c9fa..0f0319a4825 100644 --- a/icu4c/source/config/icu-config-bottom +++ b/icu4c/source/config/icu-config-bottom @@ -1,6 +1,6 @@ ## -*-sh-*- ## BEGIN of icu-config-bottom. -## Copyright (c) 2002-2010, International Business Machines Corporation and +## Copyright (c) 2002-2011, International Business Machines Corporation and ## others. All Rights Reserved. ICUUC_FILE="${libdir}/${ICULIBS_COMMON_LIB_NAME}" @@ -352,12 +352,17 @@ do ;; --version) - echo $ECHO_N $VERSION - ;; + echo $ECHO_N $VERSION + ;; - --unicode-version) - echo $ECHO_N $UNICODE_VERSION - ;; + --unicode-version) + echo $ECHO_N $UNICODE_VERSION + ;; + + --host) + echo $host + exit 0 + ;; --help) usage