Skip to content

Commit

Permalink
check folder name for debuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann ELSASS committed Nov 3, 2020
1 parent 8ff8e72 commit eea15f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions create_orig
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash
dirname=${PWD##*/}
if ! [[ "$dirname" =~ ^lazpaint-[0-9]+(\.[0-9]+)*$ ]]; then
echo "Parent folder name must be \"lazpaint-#[.#][.#]\" but is \"$dirname\" instead"
echo "where #[.#][.#] is the app version number"
exit 1
fi
archive=${dirname/-/_}.orig.tar.gz
read -p "Create \"../${archive}\" file (y/n)?" -n 1 -r
echo
Expand Down

0 comments on commit eea15f7

Please sign in to comment.