mirror of
https://github.com/BastilleBSD/bastille.git
synced 2025-12-12 10:00:01 +01:00
Makefile install target updates version to match git rev of HEAD
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,3 +1,5 @@
|
|||||||
|
BASTILLE_VERSION=$$(git rev-parse HEAD)
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all:
|
all:
|
||||||
@echo "Nothing to be done. Please use make install or make uninstall"
|
@echo "Nothing to be done. Please use make install or make uninstall"
|
||||||
@@ -5,9 +7,13 @@ all:
|
|||||||
install:
|
install:
|
||||||
@echo "Installing Bastille"
|
@echo "Installing Bastille"
|
||||||
@echo
|
@echo
|
||||||
|
@echo "Updating Bastille version to match git revision."
|
||||||
|
@echo "BASTILLE_VERSION: ${BASTILLE_VERSION}"
|
||||||
|
@sed -i.orig "s/BASTILLE_VERSION=.*/BASTILLE_VERSION=${BASTILLE_VERSION}/" usr/local/bin/bastille
|
||||||
@cp -Rv usr /
|
@cp -Rv usr /
|
||||||
@echo
|
@echo
|
||||||
@echo "This method is for testing / development."
|
@echo "This method is for testing & development."
|
||||||
|
@echo "Please report any issues to https://github.com/BastilleBSD/bastille/issues"
|
||||||
|
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|||||||
Reference in New Issue
Block a user