emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 88843a4: Port make-dist to tar 1.27 and earlier


From: Paul Eggert
Subject: [Emacs-diffs] master 88843a4: Port make-dist to tar 1.27 and earlier
Date: Sun, 1 Apr 2018 16:55:45 -0400 (EDT)

branch: master
commit 88843a45fe41c0e2312b774816bc815253751ab4
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Port make-dist to tar 1.27 and earlier
    
    Problem reported by Glenn Morris in:
    https://lists.gnu.org/r/emacs-devel/2018-03/msg00984.html
    * make-dist: Use --sort=name only if Tar supports it.
---
 admin/make-tarball.txt | 3 ++-
 make-dist              | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/admin/make-tarball.txt b/admin/make-tarball.txt
index bdf7b8c..f9ad217 100644
--- a/admin/make-tarball.txt
+++ b/admin/make-tarball.txt
@@ -210,7 +210,8 @@ longer present.
 
 Tar up the generated html_node/emacs/ and elisp/ directories and update
 the files manual/elisp.html_node.tar.gz and emacs.html_node.tar.gz.
-Use GNU Tar as follows so that the tarballs are reproducible:
+Use GNU Tar 1.28 or later so that the tarballs are more reproducible,
+as follows:
 
   cd manual
   tar='tar --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name'
diff --git a/make-dist b/make-dist
index 48c7fb4..d651e18 100755
--- a/make-dist
+++ b/make-dist
@@ -643,7 +643,9 @@ if [ "${make_tar}" = yes ]; then
        *)  gzip_extension= ;;
   esac
   echo "Creating tar file"
-  taropt='--numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name'
+  taropt='--numeric-owner --owner=0 --group=0 --mode=go+u,go-w'
+  tar --sort=name -cf /dev/null $tempparent/$emacsname/src/lisp.h 2>/tmp/out &&
+    taropt="$taropt --sort=name"
   [ "$verbose" = "yes" ] && taropt="$taropt --verbose"
 
   (cd ${tempparent} ; tar $taropt -cf - ${emacsname} ) \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]