ifndef ZIP
ifneq ($(shell which zip 2>/dev/null),)
- ZIP := zip -9m
+ ZIP := zip -9mD
endif
ifneq ($(shell which 7z 2>/dev/null),)
ZIP := 7z a -tzip -mx=9 -sdel
$(RM) $(WORKDIR)/*.txt
$(RM) $(WORKDIR)/qccversion.*
$(RM) $(WORKDIR)/csprogs-*
+ $(RM) $(WORKDIR)/autoexec/csprogs-*.cfg
$(RM) csprogs-*.pk3
.PHONY: qc
%-$(VER).pk3: $(PROGS_OUT)/%.dat
$(eval PROG=$*)
$(eval PK3=$(PROG)-$(VER).pk3)
- $(eval TXT=$(PROG)-$(VER).txt)
+ $(eval CFG=autoexec/$(PROG)-$(VER).cfg)
$(eval DAT=$(PROG)-$(VER).dat)
$(eval LNO=$(PROG)-$(VER).lno)
- @ echo "http://xonotic.org" > $(WORKDIR)/$(TXT)
+ @ mkdir -p $(WORKDIR)/autoexec
+ @ echo "// http://xonotic.org" > $(WORKDIR)/$(CFG)
+ @ echo "set csqc_progname $(DAT)" >> $(WORKDIR)/$(CFG)
@ cp -f $(PROGS_OUT)/$(PROG).dat $(WORKDIR)/$(DAT)
@ cp -f $(PROGS_OUT)/$(PROG).lno $(WORKDIR)/$(LNO)
@ $(RM) $(PROG)-*.pk3
- cd $(WORKDIR) && $(ZIP) $(CURDIR)/$(PK3) $(TXT) $(DAT) $(LNO)
+ cd $(WORKDIR) && $(ZIP) $(CURDIR)/$(PK3) $(CFG) $(DAT) $(LNO)
QCCVERSION := $(shell cd lib && $(QCC) --version)
QCCVERSIONFILE := $(WORKDIR)/qccversion.$(shell echo ${QCCVERSION} | git hash-object --stdin)
// fill sv_curl_serverpackages from .serverpackage files
if (autocvar_sv_curl_serverpackages_auto)
{
- string s = "csprogs-" WATERMARK ".txt";
+ string s = "csprogs-" WATERMARK ".dat";
// remove automatically managed files from the list to prevent duplicates
for (int i = 0, n = tokenize_console(cvar_string("sv_curl_serverpackages")); i < n; ++i)
{