Welcome to little lamb

Code » comain » commit 9dc77a7

mktarball: Error out early when no meta/desc

author Olivier Brunel
2023-01-25 21:17:21 UTC
committer Olivier Brunel
2023-01-25 21:17:21 UTC
parent fe9eba5e98df5b5ebcc36b6b5a698c6a64a435b0

mktarball: Error out early when no meta/desc

mktarball +1 -0

diff --git a/mktarball b/mktarball
index 9b69205..8292d56 100755
--- a/mktarball
+++ b/mktarball
@@ -6,6 +6,7 @@ echo " => Prepare new directory..."
 tb="$(pwd)/$name-$version"
 if test -e $tb; then error 2 "File '$tb' already exists"; fi
 if test -e $tb.tar.xz; then error 2 "File '$tb.tar.xz' already exists"; fi
+if test ! -e meta/desc; then error 2 "File 'meta/desc' missing"; fi
 
 echo "  -> Check out new worktree (branch tarball)..."
 run git worktree add $tb -b tarball master