fix bash-specific syntax in update-rules.sh default tip

Thu, 21 May 2026 12:29:23 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 21 May 2026 12:29:23 +0200
changeset 86
5aea9b0daac6
parent 85
23ddc195d06a

fix bash-specific syntax in update-rules.sh

make/update-rules.sh file | annotate | diff | comparison | revisions
--- a/make/update-rules.sh	Thu May 21 12:07:54 2026 +0200
+++ b/make/update-rules.sh	Thu May 21 12:29:23 2026 +0200
@@ -47,7 +47,7 @@
 sed '/FORCE:/q' Makefile.old > Makefile
 echo >> Makefile
 for file in `ls *.cpp` ; do
-  "$CXX" -MT "$target/${file/.cpp/\.o}" -MM $CXXFLAGS $extra_flags "$file"
+  "$CXX" -MT "$target/${file%.cpp}.o" -MM $CXXFLAGS $extra_flags "$file"
   printf '\t@echo "Compiling $<"\n'
   printf '\t$(CXX) -o $@ $(CXXFLAGS) %s -c $<\n\n' "$extra_flags"
 done  >> Makefile

mercurial