Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 07 Oct 2024 20:50:50 UTC Commit: e75602bf8eb4527cd2849c6df6c79929f9cae633 https://github.com/geany/geany/commit/e75602bf8eb4527cd2849c6df6c79929f9cae6...
Log Message: ----------- Fix Scintilla update script
scintilla/README is not a directory, so the test wouldn't ever pass.
Also fix updating Lexilla lexers if the current directory contains a .cxx file, which would then match the unescaped `*.cxx` pattern.
Modified Paths: -------------- scripts/update-scintilla.sh
Modified: scripts/update-scintilla.sh 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -44,7 +44,7 @@ copy_to() dest="$1" shift
- if ! [ -d "$dest" ]; then + if ! [ -e "$dest" ]; then echo "$dest does not exist." >&2; exit 1 fi @@ -74,7 +74,7 @@ copy_to scintilla/lexilla/lexlib "$LEX_SRC"/lexlib/*.h copy_to scintilla/lexilla/ "$LEX_SRC"/License.txt copy_to scintilla/lexilla/ "$LEX_SRC"/version.txt # now copy the lexers we use -git -C scintilla/lexilla/lexers/ ls-files *.cxx | while read f; do +git -C scintilla/lexilla/lexers/ ls-files '*.cxx' | while read f; do copy_to "scintilla/lexilla/lexers" "$LEX_SRC/lexers/$f" done
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).