]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
deduplicate during release build
authorRudolf Polzer <divverent@xonotic.org>
Sat, 3 Dec 2011 13:01:32 +0000 (14:01 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 3 Dec 2011 13:01:32 +0000 (14:01 +0100)
all
misc/tools/symlink-deduplicate.sh

diff --git a/all b/all
index 75454a32e56b79a78b0a8ca79547486805160769..ccef520dbbff93828f1f014da198ca40418ac016 100755 (executable)
--- 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 ../..
index d367635c59a0dba10ef211fb547296758c19de66..83127158464f00a613df000ec76b8f2cc5963b00 100644 (file)
@@ -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