pedantic change: use tar cf instead of -cf - bitreich-style - Style guide for programmers.
HTML git clone git://bitreich.org/bitreich-style
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit f7995ee053d259bd50ee3776f50949391ebecf8d
DIR parent 9b48be81f3efe169f41975d6202ec4ed0651895c
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 12 Jun 2020 20:40:09 +0200
pedantic change: use tar cf instead of -cf
This is more in style of a (deprecated) POSIX page and probably more portable
on older systems.
Diffstat:
M c/makefile-guideline.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/c/makefile-guideline.txt b/c/makefile-guideline.txt
@@ -225,9 +225,9 @@ mkdir the -p flag is used to create all intermediary directories and to not
return an error if the directory already exists.
50 # make tarball
- 51 tar -cf - "${NAME}-${VERSION}" | gzip -c > "${NAME}-${VERSION}.tar.gz"
+ 51 tar cf - "${NAME}-${VERSION}" | gzip -c > "${NAME}-${VERSION}.tar.gz"
-Make a tarball. gzip from stdin is used for portability (tar -z is non-POSIX).
+Make a tarball. gzip from stdin is used for portability (tar z is non-POSIX).
https://pubs.opengroup.org/onlinepubs/007908799/xcu/tar.html
52 rm -rf "${NAME}-${VERSION}"