Somewhat better version handling
This commit is contained in:
parent
e7596e41f7
commit
f5de8d1f37
5 changed files with 19 additions and 12 deletions
11
Makefile
11
Makefile
|
|
@ -17,19 +17,18 @@ help:
|
|||
@echo " help - Show this help message"
|
||||
|
||||
release: $(RELEASE_NAME)
|
||||
make -C ./rex_client
|
||||
make -C ./rex_server
|
||||
make -C ./rex_client REX_VERSION=$(REX_VERSION)
|
||||
make -C ./rex_server REX_VERSION=$(REX_VERSION)
|
||||
mv ./rex_client/rexclient $(RELEASE_NAME)
|
||||
mv ./rex_server/rexserver $(RELEASE_NAME)
|
||||
cp ./LICENSE.txt $(RELEASE_NAME)
|
||||
cp ./VERSION.txt $(RELEASE_NAME)
|
||||
cp ./README.md $(RELEASE_NAME)
|
||||
mkdir -p $(RELEASE_NAME)/source
|
||||
cp ./VERSION.txt $(RELEASE_NAME)/source
|
||||
git ls-files | xargs -I{} cp --parents {} $(RELEASE_NAME)/source
|
||||
date -I > $(RELEASE_NAME)/VERSION.txt
|
||||
echo $(rev) >> $(RELEASE_NAME)/VERSION.txt
|
||||
go version >> $(RELEASE_NAME)/VERSION.txt
|
||||
date -I > $(RELEASE_NAME)/INFO.txt
|
||||
echo $(REX_VERSION) >> $(RELEASE_NAME)/INFO.txt
|
||||
go version >> $(RELEASE_NAME)/INFO.txt
|
||||
tar cvzf $(RELEASE_NAME).tar.gz $(RELEASE_NAME)
|
||||
|
||||
$(RELEASE_NAME):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue