Skip to content

Commit

Permalink
feat: Add make step to help finding the correct stable branch
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jan 8, 2024
1 parent 6f6bab6 commit 355fd93
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,32 @@ app_name=guests
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
package_name=$(app_name)
version+=master

all: dev-setup build-js-production

# Checkout stable version
stable:
@if [ "$(version)" = "29" ]; then \
echo "master"; \
elif [ "$(version)" = "28" ]; then \
echo "master"; \
elif [ "$(version)" = "27" ]; then \
echo "stable2.5"; \
elif [ "$(version)" = "26" ]; then \
echo "stable2.5"; \
elif [ "$(version)" = "25" ]; then \
echo "stable2.5"; \
elif [ "$(version)" = "24" ]; then \
echo "stable2.5"; \
elif [ "$(version)" = "23" ]; then \
echo "stable2.4"; \
elif [ "$(version)" = "22" ]; then \
echo "stable2.4"; \
else \
echo "master"; \
fi;

# Dev env management
dev-setup: clean clean-dev npm-init

Expand Down

0 comments on commit 355fd93

Please sign in to comment.