mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 08:50:53 +00:00
Separate asset files from clean step; No more hacky NOCLEAN file
This commit is contained in:
parent
349308ef01
commit
e7ae21a61c
2 changed files with 15 additions and 33 deletions
|
@ -38,15 +38,8 @@ Use these steps to prepare building a source package for Launchpad:
|
|||
|
||||
Building the source package is a two-step process:
|
||||
|
||||
1. debuild -T pre-source (this downloads the asset files from srb2.org if necessary)
|
||||
2. debuild -S -nc
|
||||
* Builds the source package for Launchpad, including the asset files
|
||||
* -nc keeps dpkg from cleaning the assets/ folder, which would remove the files that must
|
||||
be packaged.
|
||||
3. rm ./NOCLEAN
|
||||
* This is a HACK file to prevent Launchpad from cleaning the asset files before building.
|
||||
A copy of this file is in the source package, so we don't need it anymore and
|
||||
we can delete it. If it stays in the assets/ folder, the next clean will be skipped.
|
||||
1. debuild -T build (this downloads the asset files from srb2.org if necessary)
|
||||
2. debuild -S (builds the source package for Launchpad, including the asset files)
|
||||
|
||||
Then follow the instructions at <https://help.launchpad.net/Packaging/PPA/Uploading> to upload
|
||||
to your PPA and have Launchpad build your binary deb packages.
|
||||
|
|
|
@ -62,13 +62,6 @@ build:
|
|||
fi; \
|
||||
done
|
||||
|
||||
pre-source: build
|
||||
# HACK HACK HACK: Force Launchpad to not clean by creating this
|
||||
# file and storing it in the source package.
|
||||
# We do this so the asset files are not deleted before build
|
||||
# In Launchpad, we can't download the assets from srb2.org because DNS does not work
|
||||
> $(RESOURCEDIR)/NOCLEAN
|
||||
|
||||
binary-indep:
|
||||
# Generate install folder file
|
||||
echo $(DATADIR) > $(DIR)/debian/$(PACKAGE).install
|
||||
|
@ -107,22 +100,18 @@ binary: binary-indep
|
|||
dh_builddeb
|
||||
|
||||
clean:
|
||||
if [ ! -f $(RESOURCEDIR)/NOCLEAN ]; then \
|
||||
$(RM) $(RESOURCEDIR)/*.wad; \
|
||||
$(RM) $(RESOURCEDIR)/*.dta; \
|
||||
$(RM) $(RESOURCEDIR)/*.plr; \
|
||||
$(RM) $(RESOURCEDIR)/*.wpn; \
|
||||
$(RM) $(RESOURCEDIR)/*.srb; \
|
||||
$(RM) $(RESOURCEDIR)/*.dll; \
|
||||
$(RM) $(RESOURCEDIR)/*.txt; \
|
||||
$(RM) $(DIR)/debian/tmp/*; \
|
||||
$(RM) $(DIR)/debian/$(PACKAGE).install; \
|
||||
$(RM) $(DIR)/debian/files; \
|
||||
$(RM) $(DIR)/debian/source/include-binaries; \
|
||||
else
|
||||
echo Clean was ignored because of $(RESOURCEDIR)/NOCLEAN file. Run clean again if you need to!; \
|
||||
echo Deleting $(RESOURCEDIR)/NOCLEAN...; \
|
||||
$(RM) $(RESOURCEDIR)/NOCLEAN; \
|
||||
fi
|
||||
$(RM) $(DIR)/debian/tmp/*; \
|
||||
$(RM) $(DIR)/debian/$(PACKAGE).install; \
|
||||
$(RM) $(DIR)/debian/files; \
|
||||
|
||||
clean-all: clean
|
||||
$(RM) $(RESOURCEDIR)/*.wad; \
|
||||
$(RM) $(RESOURCEDIR)/*.dta; \
|
||||
$(RM) $(RESOURCEDIR)/*.plr; \
|
||||
$(RM) $(RESOURCEDIR)/*.wpn; \
|
||||
$(RM) $(RESOURCEDIR)/*.srb; \
|
||||
$(RM) $(RESOURCEDIR)/*.dll; \
|
||||
$(RM) $(RESOURCEDIR)/*.txt; \
|
||||
$(RM) $(DIR)/debian/source/include-binaries; \
|
||||
|
||||
.PHONY: all clean binary binary-arch binary-indep build
|
||||
|
|
Loading…
Reference in a new issue