Commit 99fde4b8 authored by Ludovic Apvrille's avatar Ludovic Apvrille

Update TTool Makefile for handling preinstalled version in the TTool website

parent 01f9456f
...@@ -55,7 +55,7 @@ make ttooljavac Build TTool only with javac ...@@ -55,7 +55,7 @@ make ttooljavac Build TTool only with javac
Other targets: Other targets:
-------------- --------------
make preinstall Generate a preinstall version of TTool for Linux, Windows and make preinstall Generate a preinstall version of TTool for Linux, Windows and
MacOS and publish them on perso.telecom-paristech.fr. MacOS and publish them on the website of TTool (hidden link)
!!! Must have the right ssh key installed for this !!! !!! Must have the right ssh key installed for this !!!
make git Update the build number. make git Update the build number.
...@@ -191,6 +191,8 @@ documentation: $(patsubst %,$(TTOOL_SRC)/%,$(GLOBAL_JAVA)) ...@@ -191,6 +191,8 @@ documentation: $(patsubst %,$(TTOOL_SRC)/%,$(GLOBAL_JAVA))
# ========== RELEASES ========== # ========== RELEASES ==========
# ======================================== # ========================================
TTOOL_PRIVATE ?= $(TTOOL_PATH)/../TTool-Private TTOOL_PRIVATE ?= $(TTOOL_PATH)/../TTool-Private
TTOOL_PRIVATE_RELEASES ?= $(TTOOL_PRIVATE)/website/ttool/releases
PROD_USERNAME = apvrille PROD_USERNAME = apvrille
PROD_ADDRESS = ssh.enst.fr PROD_ADDRESS = ssh.enst.fr
...@@ -460,12 +462,15 @@ $(BASERELEASE:.tgz=.tar): $(JTTOOL_BINARY) $(TTOOL_BINARY) $(LAUNCHER_BINARY) $( ...@@ -460,12 +462,15 @@ $(BASERELEASE:.tgz=.tar): $(JTTOOL_BINARY) $(TTOOL_BINARY) $(LAUNCHER_BINARY) $(
publish_jar: $(TTOOL_BINARY) publish_jar: $(TTOOL_BINARY)
@echo "$(PREFIX) Publishing standard and advanced releases" @echo "$(PREFIX) Publishing standard and advanced releases"
scp $< $(PROD_USERNAME)@$(PROD_ADDRESS):$(PROD_PATH)/ # scp $< $(PROD_USERNAME)@$(PROD_ADDRESS):$(PROD_PATH)/
ssh $(PROD_USERNAME)@$(PROD_ADDRESS) "chmod a+r $(PROD_PATH)/$(notdir $<)" # ssh $(PROD_USERNAME)@$(PROD_ADDRESS) "chmod a+r $(PROD_PATH)/$(notdir $<)"
cp $< $(TTOOL_PRIVATE_RELEASES)/
preinstall: $(TTOOL_PREINSTALL_WINDOWS) $(TTOOL_PREINSTALL_LINUX) $(TTOOL_PREINSTALL_MACOS) preinstall: $(TTOOL_PREINSTALL_WINDOWS) $(TTOOL_PREINSTALL_LINUX) $(TTOOL_PREINSTALL_MACOS)
@echo "$(PREFIX) Publishing preinstall versions" @echo "$(PREFIX) Publishing preinstall versions"
scp $^ $(PROD_USERNAME)@$(PROD_ADDRESS):$(PROD_PATH)/ # scp $^ $(PROD_USERNAME)@$(PROD_ADDRESS):$(PROD_PATH)/
cp $^ $(TTOOL_PRIVATE_RELEASES)/
cd $(TTOOL_PRIVATE)/website&&make ttool
git: git:
@echo "$(PREFIX) Updating build number" @echo "$(PREFIX) Updating build number"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment