diff --git a/makefile b/makefile index ae7fb73d..67286f9a 100644 --- a/makefile +++ b/makefile @@ -107,7 +107,7 @@ deb: $(BINNAME) #cp -rf $(BuildDir)/nginx/* $(DebBuildDir)/etc/nginx/conf.d #cp -rf $(BuildDir)/systemd/*.service $(DebBuildDir)/lib/systemd/system/ chmod +x $(DebBuildDir)/usr/local/omc/bin/* - sed -i.bak 's/YYYYMMDD/'$(date +%Y%m%d)'/g' $(DebBuildDir)/DEBIAN/control + shell sed -i.bak 's/YYYYMMDD/$(shell date +"%Y%m%d")/g' $(DebBuildDir)/DEBIAN/control dpkg -b $(DebBuildDir) $(ReleaseDebs)/$(PROJECT)-$(VERSION)-$(Release).$(PLATFORM).deb rpm: $(BINNAME)