diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-07-19 12:25:50 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-07-19 12:25:50 +0200 |
commit | 3d10dfff70ce198670fa41e1599a8b840d92fdb1 (patch) | |
tree | a00ad7fff28708be88d86c10a36a555c4dcba6ef /CIS/gen-lys | |
parent | 4cff015b609227c6b5f627bc8e4ae513b3c51a57 (diff) | |
download | Musik-3d10dfff70ce198670fa41e1599a8b840d92fdb1.tar.xz |
CIS/gen-lys: operate file by file, skip early if already existing
Diffstat (limited to 'CIS/gen-lys')
-rwxr-xr-x | CIS/gen-lys | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/CIS/gen-lys b/CIS/gen-lys index 85c7653..b5efb98 100755 --- a/CIS/gen-lys +++ b/CIS/gen-lys @@ -2,10 +2,6 @@ cd "$(dirname "$(readlink -e "$0")")" -for s in *.cap *.capx *.xml *.mxl; do - timeout 10 make "${s%.*}.ly" -done - masterMakefile=$( ls -l ../*/Makefile \ | sort -k2n,2 \ @@ -13,7 +9,8 @@ masterMakefile=$( | sed 's@^.* @@' ) -for s in *.ly; do +for s in *.cap *.capx *.xml *.mxl; do + s="${s%.*}.ly" d="../$( echo "$s" \ | sed ' @@ -30,6 +27,7 @@ for s in *.ly; do ' )" [ -d "$d" ] && continue + timeout 10 make "$s" || continue mkdir "$d" mv "$s" "$d" ln "${masterMakefile}" "$d" |