From 4cff015b609227c6b5f627bc8e4ae513b3c51a57 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Jul 2024 12:23:06 +0200 Subject: CIS/gen-lys neu --- CIS/gen-lys | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 CIS/gen-lys diff --git a/CIS/gen-lys b/CIS/gen-lys new file mode 100755 index 0000000..85c7653 --- /dev/null +++ b/CIS/gen-lys @@ -0,0 +1,38 @@ +#!/bin/bash + +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 \ + | tail -n1 \ + | sed 's@^.* @@' +) + +for s in *.ly; do + d="../$( + echo "$s" \ + | sed ' + s@^.*/@@ + s@\.ly$@@ + s@ @_@g + s@ä@ae@g + s@ö@oe@g + s@ü@ue@g + s@Ä@Ae@g + s@Ö@Oe@g + s@Ü@Ue@g + s@ß@sz@g + ' + )" + [ -d "$d" ] && continue + mkdir "$d" + mv "$s" "$d" + ln "${masterMakefile}" "$d" + git add "$d" + git commit "$d" -m "${d#*/} neu" +done -- cgit v1.2.3-70-g09d2