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:
parent
1442a2abe8
commit
5b5b53872c
@ -33,17 +33,18 @@ rm -f "$path" "$path".gz
|
||||
git archive --format=tar --prefix="$prefix"/ master > "$path"
|
||||
|
||||
# tarball out the documentation, generate a configure script and version file
|
||||
autoconf
|
||||
make user_doc
|
||||
make share/man
|
||||
autoreconf
|
||||
./configure --with-doxygen
|
||||
make user_doc share/man
|
||||
echo $VERSION > version
|
||||
cd /tmp
|
||||
rm -f "$prefix"
|
||||
ln -s "$wd" "$prefix"
|
||||
gnutar --append --file="$path" "$prefix"/user_doc/html
|
||||
gnutar --append --file="$path" "$prefix"/share/man
|
||||
gnutar --append --file="$path" "$prefix"/version
|
||||
gnutar --append --file="$path" "$prefix"/configure
|
||||
TAR_APPEND="gnutar --append --file=$path --mtime=now --owner=root --group=root --mode=g+w,a+rX"
|
||||
$TAR_APPEND --no-recursion "$prefix"/user_doc
|
||||
$TAR_APPEND "$prefix"/user_doc/html "$prefix"/share/man
|
||||
$TAR_APPEND "$prefix"/version
|
||||
$TAR_APPEND "$prefix"/configure "$prefix"/config.h.in
|
||||
rm -f "$prefix"/version
|
||||
rm -f "$prefix"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user