From 3d10dfff70ce198670fa41e1599a8b840d92fdb1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Jul 2024 12:25:50 +0200 Subject: CIS/gen-lys: operate file by file, skip early if already existing --- CIS/gen-lys | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'CIS') 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" -- cgit v1.2.3-70-g09d2