]> granicus.if.org Git - icu/commitdiff
ICU-8911 Add make target releaseDist
authorMichael Ow <mow@svn.icu-project.org>
Wed, 16 Nov 2011 22:03:45 +0000 (22:03 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Wed, 16 Nov 2011 22:03:45 +0000 (22:03 +0000)
X-SVN-Rev: 30973

icu4c/source/Makefile.in
icu4c/source/config/icu-config-bottom

index 18bb0e7ccf41dc3d2c358d506e84422eaf28a4ef..9050e4cefb9ad9aec4938147268a9a6e7ce1102f 100644 (file)
@@ -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
index 53a9062c9fa45b166be776149b009deeda40b98b..0f0319a48257146308a242ac4337128bc6350812 100644 (file)
@@ -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