Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kart-Public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrew Bradley
Kart-Public
Commits
e7ae21a6
Commit
e7ae21a6
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
Separate asset files from clean step; No more hacky NOCLEAN file
parent
349308ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/debian/README.Debian
+2
-9
2 additions, 9 deletions
assets/debian/README.Debian
assets/debian/rules
+13
-24
13 additions, 24 deletions
assets/debian/rules
with
15 additions
and
33 deletions
assets/debian/README.Debian
+
2
−
9
View file @
e7ae21a6
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
assets/debian/rules
+
13
−
24
View file @
e7ae21a6
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment