mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-14 00:40:46 +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:
|
Building the source package is a two-step process:
|
||||||
|
|
||||||
1. debuild -T pre-source (this downloads the asset files from srb2.org if necessary)
|
1. debuild -T build (this downloads the asset files from srb2.org if necessary)
|
||||||
2. debuild -S -nc
|
2. debuild -S (builds the source package for Launchpad, including the asset files)
|
||||||
* 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.
|
|
||||||
|
|
||||||
Then follow the instructions at <https://help.launchpad.net/Packaging/PPA/Uploading> to upload
|
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.
|
to your PPA and have Launchpad build your binary deb packages.
|
||||||
|
|
|
@ -62,13 +62,6 @@ build:
|
||||||
fi; \
|
fi; \
|
||||||
done
|
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:
|
binary-indep:
|
||||||
# Generate install folder file
|
# Generate install folder file
|
||||||
echo $(DATADIR) > $(DIR)/debian/$(PACKAGE).install
|
echo $(DATADIR) > $(DIR)/debian/$(PACKAGE).install
|
||||||
|
@ -107,22 +100,18 @@ binary: binary-indep
|
||||||
dh_builddeb
|
dh_builddeb
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
if [ ! -f $(RESOURCEDIR)/NOCLEAN ]; then \
|
$(RM) $(DIR)/debian/tmp/*; \
|
||||||
$(RM) $(RESOURCEDIR)/*.wad; \
|
$(RM) $(DIR)/debian/$(PACKAGE).install; \
|
||||||
$(RM) $(RESOURCEDIR)/*.dta; \
|
$(RM) $(DIR)/debian/files; \
|
||||||
$(RM) $(RESOURCEDIR)/*.plr; \
|
|
||||||
$(RM) $(RESOURCEDIR)/*.wpn; \
|
clean-all: clean
|
||||||
$(RM) $(RESOURCEDIR)/*.srb; \
|
$(RM) $(RESOURCEDIR)/*.wad; \
|
||||||
$(RM) $(RESOURCEDIR)/*.dll; \
|
$(RM) $(RESOURCEDIR)/*.dta; \
|
||||||
$(RM) $(RESOURCEDIR)/*.txt; \
|
$(RM) $(RESOURCEDIR)/*.plr; \
|
||||||
$(RM) $(DIR)/debian/tmp/*; \
|
$(RM) $(RESOURCEDIR)/*.wpn; \
|
||||||
$(RM) $(DIR)/debian/$(PACKAGE).install; \
|
$(RM) $(RESOURCEDIR)/*.srb; \
|
||||||
$(RM) $(DIR)/debian/files; \
|
$(RM) $(RESOURCEDIR)/*.dll; \
|
||||||
$(RM) $(DIR)/debian/source/include-binaries; \
|
$(RM) $(RESOURCEDIR)/*.txt; \
|
||||||
else
|
$(RM) $(DIR)/debian/source/include-binaries; \
|
||||||
echo Clean was ignored because of $(RESOURCEDIR)/NOCLEAN file. Run clean again if you need to!; \
|
|
||||||
echo Deleting $(RESOURCEDIR)/NOCLEAN...; \
|
|
||||||
$(RM) $(RESOURCEDIR)/NOCLEAN; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
.PHONY: all clean binary binary-arch binary-indep build
|
.PHONY: all clean binary binary-arch binary-indep build
|
||||||
|
|
Loading…
Reference in a new issue