@@ -16,9 +16,14 @@ if ! echo "$OUTPUT_TIMESTAMP" | grep -Pq '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
16
16
exit 1
17
17
fi
18
18
19
- # Build directory
19
+ # Build directory containing temporary files
20
+ #
20
21
build=CMakeFiles
21
22
23
+ # Directory containing the distribution archives
24
+ #
25
+ dist=" $build /dist"
26
+
22
27
# Create source directory
23
28
mkdir -p " $build "
24
29
OUTPUT_DIR=" $build /apache-log4cxx-$VERSION "
@@ -51,7 +56,7 @@ rm -r "$OUTPUT_DIR"/src/main/abi-symbols
51
56
# Create TAR file
52
57
#
53
58
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
54
- TAR_ARCHIVE=" $build /apache-log4cxx-$VERSION .tar.gz"
59
+ TAR_ARCHIVE=" $dist /apache-log4cxx-$VERSION .tar.gz"
55
60
echo ' Tar version:'
56
61
tar --version | sed -e ' s/^/\t/'
57
62
echo ' Gzip version:'
@@ -74,7 +79,7 @@ echo -e Tar archive: "$TAR_ARCHIVE"
74
79
#
75
80
# See https://reproducible-builds.org/docs/archives/ for reproducibility tips
76
81
# Change the mtime of all files
77
- ZIP_ARCHIVE=" $build /apache-log4cxx-$VERSION .zip"
82
+ ZIP_ARCHIVE=" $dist /apache-log4cxx-$VERSION .zip"
78
83
echo ' Zip version:'
79
84
zip --version | sed ' s/^/\t/'
80
85
if [ -f " $ZIP_ARCHIVE " ]; then
@@ -88,14 +93,14 @@ find "$OUTPUT_DIR" -exec touch --date="$OUTPUT_TIMESTAMP" -m {} +
88
93
cd " $build "
89
94
find apache-log4cxx-$VERSION -print0 |
90
95
LC_ALL=C sort -z |
91
- xargs -0 zip -q -X apache-log4cxx-$VERSION .zip
96
+ xargs -0 zip -q -X dist/ apache-log4cxx-$VERSION .zip
92
97
)
93
98
94
99
echo -e ZIP archive: " $ZIP_ARCHIVE "
95
100
96
101
# Generate hashes
97
102
(
98
- cd " $build "
103
+ cd " $dist "
99
104
for format in tar.gz zip; do
100
105
sha256sum apache-log4cxx-$VERSION .$format > apache-log4cxx-$VERSION .$format .sha256
101
106
sha512sum apache-log4cxx-$VERSION .$format > apache-log4cxx-$VERSION .$format .sha512
0 commit comments