[mm-common/wip/lantw/dont-hard-code-the-path-of-bash-use-short-options-to-run-tar-commands: 2/2] Use short options to run tar commands



commit 31579cb708e51d4c922069d6a74bdd93914a5533
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Wed Jul 10 22:24:18 2019 +0800

    Use short options to run tar commands
    
    Although long options are more readable, it is less supported by
    non-GNU tar implementation. To ensure that the script can not only run
    on GNU/Linux but also run on most *BSD, we have to use short options.

 util/meson_aux/skeletonmm-tarball.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/util/meson_aux/skeletonmm-tarball.sh b/util/meson_aux/skeletonmm-tarball.sh
index 64da25d..ff50bc5 100755
--- a/util/meson_aux/skeletonmm-tarball.sh
+++ b/util/meson_aux/skeletonmm-tarball.sh
@@ -10,7 +10,7 @@ shift; shift
 
 # These options don't contain filenames, and thus no spaces that
 # must be preserved in the call to tar.
-tar_options="--create --dereference --old-archive --file=-"
+tar_options="-chof -"
 
 case "$output_file" in
   *.xz)


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