mirror of
https://github.com/BastilleBSD/bastille.git
synced 2026-01-04 12:03:35 +01:00
Makefile: use variable for Bastille dev version to avoid repetition if anything changes later
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,5 +1,6 @@
|
||||
BASTILLE_BRANCH=$$(git branch --show-current)
|
||||
BASTILLE_VERSION=$$(git rev-parse --short HEAD)
|
||||
BASTILLE_DEV_VERSION="${BASTILLE_BRANCH}-${BASTILLE_VERSION}"
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
@@ -9,8 +10,8 @@ install:
|
||||
@echo "Installing Bastille"
|
||||
@echo
|
||||
@echo "Updating Bastille version to match git revision."
|
||||
@echo "BASTILLE_VERSION: ${BASTILLE_BRANCH}-${BASTILLE_VERSION}"
|
||||
@sed -i '' "s/BASTILLE_VERSION=.*$/BASTILLE_VERSION=${BASTILLE_BRANCH}-${BASTILLE_VERSION}/" usr/local/bin/bastille
|
||||
@echo "BASTILLE_VERSION: ${BASTILLE_DEV_VERSION}"
|
||||
@sed -i '' "s/BASTILLE_VERSION=.*$/BASTILLE_VERSION=${BASTILLE_DEV_VERSION}/" usr/local/bin/bastille
|
||||
@cp -Rv usr /
|
||||
@gzip -f -n /usr/local/share/man/man8/bastille.8
|
||||
@echo
|
||||
|
||||
Reference in New Issue
Block a user