diff --git a/makefile b/makefile index f2391f4d..0555fd1c 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ PROJECT = OMC VERSION = 1.6.1 -RelDate = shell date +%Y%m%d +RelDate = `date +%Y%m%d` Release = $(RelDate) RelVer = $(VERSION)-$(RelDate) PLATFORM = amd64 @@ -98,7 +98,7 @@ deb: $(BINNAME) chmod +x $(DebBuildDir)/usr/local/omc/bin/* cp -rf $(BuildDir)/nginx/* $(DebBuildDir)/etc/nginx/conf.d cp -rf $(BuildDir)/systemd/*.service $(DebBuildDir)/lib/systemd/system/ - sed -i.bak 's/YYYYMMDD/$(RelDate)/g' $(DebBuildDir)/DEBIAN/control + sed -i.bak 's/YYYYMMDD/`echo date +%Y%m%d`)/g' $(DebBuildDir)/DEBIAN/control dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb rpm: $(BINNAME)