[mm-common] Don't use missing for making skeleton tarball.



commit 0bb50a28cfbd3ef8b913149090eaeaf0a3072f5f
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Tue Sep 13 11:34:52 2011 +0200

    Don't use missing for making skeleton tarball.
    
    Missing script is rather intended to be used by maintainers, that
    is - in maintainer mode, so just look for tar utility and use it
    directly.
    
    * configure.ac: Add check for tar utility.
    * Makefile.am: Don't use missing for packaging skeleton files.

 Makefile.am  |    2 +-
 configure.ac |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index aa81829..0bd8956 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -121,7 +121,7 @@ download_curl = $(CURL) --compressed --connect-timeout 300 -g -L -m 3600 -R --re
 download_wget = $(WGET) -N -nd -T 300 -t 5 -P $(dir $@)
 
 subst_manpage = $(SED) 's|[ ]PACKAGE_STRING[@]|$(PACKAGE_STRING)|g;s|[ ]docdir[@]|$(docdir)|g'
-srctar_stdout = cd $(top_srcdir) >/dev/null && $(SHELL) ./missing --run tar chof -
+srctar_stdout = cd $(top_srcdir) >/dev/null && $(SHELL) $(TAR) chof -
 
 # If maintainer mode is enabled, always check the remote locations
 # of the tag files for updates when building the default target.
diff --git a/configure.ac b/configure.ac
index b52e37f..10f2320 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,9 @@ AC_ARG_VAR([CURL], [curl transfer command])
 AC_ARG_VAR([WGET], [wget download command])
 
 AC_PROG_SED
+dnl list of tar execs is taken from the generated ./missing script.
+AC_CHECK_PROGS([TAR], [tar gnutar gtar], [no])
+AS_VAR_IF([TAR], [no], [AC_MSG_ERROR([tar utility not found])])
 AC_CHECK_PROG([CURL], [curl], [curl])
 AC_CHECK_PROG([WGET], [wget], [wget])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]