Allow any project to be released in release.sh

This commit is contained in:
Gwilym Kuiper 2022-01-12 22:50:59 +00:00
parent 71e2e64c48
commit c575f63281

View file

@ -31,26 +31,19 @@ case "$PROJECT" in
DIRECTORY="agb" DIRECTORY="agb"
TAGNAME="v$VERSION" TAGNAME="v$VERSION"
;; ;;
agb-image-converter) agb-*)
DIRECTORY="agb-image-converter" if [ -f "$PROJECT/Cargo.toml" ]; then
TAGNAME="agb-image-converter/v$VERSION" DIRECTORY=$PROJECT
;; TAGNAME="$PROJECT/v$VERSION"
agb-sound-converter) else
DIRECTORY="agb-sound-converter" echo "Unknown project name $PROJECT"
TAGNAME="agb-sound-converter/v$VERSION" exit 1
;; fi
agb-macros)
DIRECTORY="agb-macros"
TAGNAME="agb-macros/v$VERSION"
;; ;;
mgba-test-runner) mgba-test-runner)
DIRECTORY="mgba-test-runner" DIRECTORY="mgba-test-runner"
TAGNAME="mgba-test-runner/v$VERSION" TAGNAME="mgba-test-runner/v$VERSION"
;; ;;
agb-fixnum)
DIRECTORY="agb-fixnum"
TAGNAME="agb-fixnum/v$VERSION"
;;
*) *)
echo "Unknown project name $PROJECT" echo "Unknown project name $PROJECT"
exit 1 exit 1