[packages/libcaca] - typo, regex fix

qboosh qboosh at pld-linux.org
Mon Dec 6 21:03:55 CET 2021


commit c1b23ee808ec9d97212e8b8326f0f312f303aaf6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Dec 6 21:04:21 2021 +0100

    - typo, regex fix

 libcaca-sh.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libcaca-sh.patch b/libcaca-sh.patch
index a016958..c27dec4 100644
--- a/libcaca-sh.patch
+++ b/libcaca-sh.patch
@@ -5,7 +5,7 @@
    CFLAGS="$save_CFLAGS"
    if test "${ac_cv_my_have_cocoa}" = "yes"; then
 -    [[[ "$target_os" =~ [0-9]+ ]]] && darwin_ver="${BASH_REMATCH[[0]]}"
-+    darwin_ver="$(echo "$target_os}" | sed -ne 's/.*\([0-9]\+\).*/\1/p')"
++    [darwin_ver="$(echo "${target_os}" | sed -ne 's/[^0-9]*\([0-9]\+\).*/\1/p')"]
      case x${target} in
      xpowerpc*darwin*)
        # 10.3 needed to link with X11
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcaca.git/commitdiff/c1b23ee808ec9d97212e8b8326f0f312f303aaf6



More information about the pld-cvs-commit mailing list