22
22
#
23
23
build=CMakeFiles
24
24
25
- # Directory containing the distribution archives
26
- #
27
- dist=" $build /dist"
28
-
29
25
# Create source directory
30
- mkdir -p " $dist "
26
+ mkdir -p " $build / dist"
31
27
OUTPUT_DIR=" $build /apache-log4cxx-$VERSION "
32
28
if [ -f " $OUTPUT_DIR " ]; then
33
29
if [ ! -d " $OUTPUT_DIR " ]; then
@@ -58,7 +54,7 @@ rm -r "$OUTPUT_DIR"/src/main/abi-symbols
58
54
# Create TAR file
59
55
#
60
56
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
61
- TAR_ARCHIVE=" $dist /apache-log4cxx-$VERSION .tar.gz"
57
+ TAR_ARCHIVE=" $build / dist/apache-log4cxx-$VERSION .tar.gz"
62
58
echo ' Tar version:'
63
59
tar --version | sed -e ' s/^/\t/'
64
60
echo ' Gzip version:'
@@ -68,20 +64,21 @@ if [ -f "$TAR_ARCHIVE" ]; then
68
64
exit 1
69
65
fi
70
66
71
- tar --transform=" s!^$OUTPUT_DIR !apache-log4cxx-$VERSION !" \
72
- --mtime=" $OUTPUT_TIMESTAMP " \
73
- --owner=0 --group=0 --numeric-owner \
74
- --sort=name \
75
- --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
76
- --create --gzip --file " $TAR_ARCHIVE " " $OUTPUT_DIR "
77
-
67
+ (
68
+ cd " $build "
69
+ tar --mtime=" $OUTPUT_TIMESTAMP " \
70
+ --owner=0 --group=0 --numeric-owner \
71
+ --sort=name \
72
+ --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
73
+ --create --gzip --file " dist/apache-log4cxx-$VERSION .tar.gz" " $OUTPUT_DIR "
74
+ )
78
75
echo -e Tar archive: " $TAR_ARCHIVE "
79
76
80
77
# Create ZIP file
81
78
#
82
79
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
83
80
# Change the mtime of all files
84
- ZIP_ARCHIVE=" $dist /apache-log4cxx-$VERSION .zip"
81
+ ZIP_ARCHIVE=" $build / dist/apache-log4cxx-$VERSION .zip"
85
82
echo ' Zip version:'
86
83
zip --version | sed ' s/^/\t/'
87
84
if [ -f " $ZIP_ARCHIVE " ]; then
0 commit comments