tarball generation: include config.h.in, set mode and ownership

Include config.h.in as well as configure.

Also sets correct owner, group and mode for all appended files.

Update the mtime of all appended files so that configure and config.h.in
are always newer than configure.ac.

(Fixes many problems introduced by 5023ade7, and makes the commit
message actually true.)
This commit is contained in:
David Adam (zanchey) 2013-09-09 20:08:37 +08:00
parent 1442a2abe8
commit 5b5b53872c

View file

@ -33,17 +33,18 @@ rm -f "$path" "$path".gz
git archive --format=tar --prefix="$prefix"/ master > "$path" git archive --format=tar --prefix="$prefix"/ master > "$path"
# tarball out the documentation, generate a configure script and version file # tarball out the documentation, generate a configure script and version file
autoconf autoreconf
make user_doc ./configure --with-doxygen
make share/man make user_doc share/man
echo $VERSION > version echo $VERSION > version
cd /tmp cd /tmp
rm -f "$prefix" rm -f "$prefix"
ln -s "$wd" "$prefix" ln -s "$wd" "$prefix"
gnutar --append --file="$path" "$prefix"/user_doc/html TAR_APPEND="gnutar --append --file=$path --mtime=now --owner=root --group=root --mode=g+w,a+rX"
gnutar --append --file="$path" "$prefix"/share/man $TAR_APPEND --no-recursion "$prefix"/user_doc
gnutar --append --file="$path" "$prefix"/version $TAR_APPEND "$prefix"/user_doc/html "$prefix"/share/man
gnutar --append --file="$path" "$prefix"/configure $TAR_APPEND "$prefix"/version
$TAR_APPEND "$prefix"/configure "$prefix"/config.h.in
rm -f "$prefix"/version rm -f "$prefix"/version
rm -f "$prefix" rm -f "$prefix"