added make recipe for changing the control file version

This commit is contained in:
Kevin Dorner 2020-11-03 01:15:27 +01:00 committed by root
parent 677c876dc8
commit b870de6dd1
2 changed files with 8 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.exe *.exe
/data/ /data/
/utils/

View File

@ -7,7 +7,7 @@ SOURCE = https://az764295.vo.msecnd.net/stable/d2e414d9e4239a252d1ab117bd7067f12
CHECKSUM = 0180288d4a51497224997ce0491b1f7335747df3ce858ae9f73458f81f782156 CHECKSUM = 0180288d4a51497224997ce0491b1f7335747df3ce858ae9f73458f81f782156
## Download Link and Checksums can be found on https://code.visualstudio.com/Download ## Download Link and Checksums can be found on https://code.visualstudio.com/Download
install: clean install: clean setversion
@[ -d "./data/" ] || mkdir ./data/ @[ -d "./data/" ] || mkdir ./data/
@echo "Downloading the VSCode executable..." @echo "Downloading the VSCode executable..."
@wget -O ./data/VSCodeSetup-x64-${UPSTREAM_VERSION}.exe ${SOURCE} @wget -O ./data/VSCodeSetup-x64-${UPSTREAM_VERSION}.exe ${SOURCE}
@ -30,7 +30,11 @@ clean:
@echo "Cleaning ./utils/" @echo "Cleaning ./utils/"
@rm -rf ./utils/ @rm -rf ./utils/
setversion:
@echo "Writing version ${PKG_FULL_VERSION} to control file"
@sed -i "s/^version: [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$$/version: ${UPSTREAM_VERSION}/" ./control
@sed -i "s/^packageVersion: [0-9]\{1,3\}\.[0-9]\{1,3\}$$/packageVersion: ${PKG_SUB_RELEASE}/" ./control
package: package:
@echo "MEEP!" @echo "MEEP!"
.PHONY: install clean package .PHONY: install clean setversion package