From a1a2328e2e9da480344d6c36b523db1a932e1f8b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 3 Dec 2011 14:01:32 +0100 Subject: [PATCH] deduplicate during release build --- all | 2 ++ misc/tools/symlink-deduplicate.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/all b/all index 75454a32..ccef520d 100755 --- a/all +++ b/all @@ -1952,6 +1952,8 @@ case "$cmd" in release_timereport "processed data" verbose "$SELF" release-buildpk3-transform-$transform "Xonotic/temp" release_timereport "transformed data" + find . -type f -size +4k | verbose misc/tools/symlink-deduplicate.sh + release_timereport "deduplicated data" verbose mkzipr "../../$dst" * release_timereport "zipped data" verbose cd ../.. diff --git a/misc/tools/symlink-deduplicate.sh b/misc/tools/symlink-deduplicate.sh index d367635c..83127158 100644 --- a/misc/tools/symlink-deduplicate.sh +++ b/misc/tools/symlink-deduplicate.sh @@ -108,7 +108,7 @@ while IFS= read -r L; do eval first=\$first_$s if [ -n "$first" ]; then first_r=`make_relative_path "$L" "$first"` - echo ln -snf "$first_r" "$L" + ln -snf "$first_r" "$L" killed=$((`stat -c %s "$L"` + $killed)) else eval first_$s=\$L -- 2.39.2