Welcome to little lamb

Code » comain » commit b5f47a6

mkcmn: exit 0

author Olivier Brunel
2023-06-18 07:08:25 UTC
committer Olivier Brunel
2023-06-20 07:07:15 UTC
parent 533e84ef8e7c9ecd3f8d4b76a5df41cc300dce17

mkcmn: exit 0

mkcmn +4 -1

diff --git a/mkcmn b/mkcmn
index b0bde99..c607f82 100755
--- a/mkcmn
+++ b/mkcmn
@@ -11,6 +11,7 @@ test -e "$d" || mkdir -p "$d"
 cp meta/version "$d"
 echo -l$n > "$d/libs"
 if test -d meta/deps; then
+    rm -rf "$d/deps"
     mkdir "$d/deps"
     for dep in meta/deps/*; do
         test -e "$dep/cpnt" && continue
@@ -18,7 +19,9 @@ if test -d meta/deps; then
         mkdir "$d/deps/$n"
         for file in {version,library,get_version,get_libs,get_cflags,get_ldflags,get_incdir}
         do
-            test -e "$dep/$file" && cp "$dep/$file" "$d/deps/$n"
+            if test -e "$dep/$file"; then
+                cp "$dep/$file" "$d/deps/$n"
+            fi
         done
     done
 fi