From: Rudolf Polzer Date: Sat, 3 Dec 2011 13:01:32 +0000 (+0100) Subject: deduplicate during release build X-Git-Tag: xonotic-v0.6.0~53 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a1a2328e2e9da480344d6c36b523db1a932e1f8b;p=xonotic%2Fxonotic.git deduplicate during release build --- 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