Welcome to little lamb

Code » comain » commit 9731de7

Some non-POSIX sh fixes

author Olivier Brunel
2023-07-13 11:30:04 UTC
committer Olivier Brunel
2023-07-13 12:01:51 UTC
parent c5946fbee35b024c4e249081292c47fcdf5d4390

Some non-POSIX sh fixes

configure +2 -1
mkcmn +2 -2

diff --git a/configure b/configure
index bf4e3b0..0860fe8 100755
--- a/configure
+++ b/configure
@@ -334,7 +334,8 @@ procneeddep()
 
 procdep_error()
 {
-    local s="$@"
+    local s
+    s="$@"
     case ${s%% *} in
         BADVERSION) echo "version too old" ;;
         NOTFOUND) echo "not found" ;;
diff --git a/mkcmn b/mkcmn
index c607f82..77a0203 100755
--- a/mkcmn
+++ b/mkcmn
@@ -17,8 +17,8 @@ if test -d meta/deps; then
         test -e "$dep/cpnt" && continue
         n="$(expr substr "$dep" 11 ${#dep})"
         mkdir "$d/deps/$n"
-        for file in {version,library,get_version,get_libs,get_cflags,get_ldflags,get_incdir}
-        do
+        set version library get_version get_libs get_cflags get_ldflags get_incdir
+        for file; do
             if test -e "$dep/$file"; then
                 cp "$dep/$file" "$d/deps/$n"
             fi