From 7ba7bf2962dccd55a17d3ff92e098968226fbba3 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 18 Jul 2021 13:11:37 +0100 Subject: Make clean use redo-targets if it exists --- clean | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clean b/clean index 8797998..ae420c3 100755 --- a/clean +++ b/clean @@ -1,3 +1,7 @@ #!/bin/sh -find . -type f \( -name '*.o' -o -name '*.inc' \) -exec rm -f {} + -rm -f .compile .link-executable .link-library .vars.rc all compile_flags.txt libpack.so test test_gen +if command -v redo-targets >/dev/null 2>&1; then + redo-targets | tr '\n' '\0' | xargs -r0 rm -f +else + find . -type f \( -o -name '*.o' -o -name '*.inc' \) -exec rm -f {} + + rm -f .compile .link-executable .link-library .vars.rc all compile_flags.txt libpack.so test test_gen +fi -- cgit v1.2.3-54-g00ecf