Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
349308ef
Commit
349308ef
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
Do not clean files before source building
parent
77bf02f0
No related branches found
No related tags found
2 merge requests
!488
Merge in next and don't billboard papersprites in GL
,
!350
Update debian packaging to work with Launchpad PPA
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
assets/debian/README.Debian
+12
-5
12 additions, 5 deletions
assets/debian/README.Debian
assets/debian/rules
+24
-11
24 additions, 11 deletions
assets/debian/rules
assets/debian/source/options
+0
-1
0 additions, 1 deletion
assets/debian/source/options
debian/README.Debian
+7
-4
7 additions, 4 deletions
debian/README.Debian
with
43 additions
and
21 deletions
assets/debian/README.Debian
+
12
−
5
View file @
349308ef
...
...
@@ -12,7 +12,7 @@ with apt-key add. Thanks!
-- Callum Dickinson <gcfreak_ag20@hotmail.com> Fri, 26 Nov 2010 18:25:31 +1300
Build
ing for Launchpad PPA
Sign
ing for Launchpad PPA
First, follow the above instructions to generate a GnuPG key with your identity. You will need
to publish the fingerprint of that key to Ubuntu's key server.
...
...
@@ -26,20 +26,27 @@ upload signed source packages and publish them onto your PPA.
IF YOU UPLOAD A PACKAGE and Launchpad does NOT send you a confirmation or rejection email, that
means your key is not set up correctly with your Launchpad account.
Building for Launchpad PPA
Use these steps to prepare building a source package for Launchpad:
-2
. Highly recommend copying the assets/ folder to outside your repo folder, or else the asset
1
. Highly recommend copying the assets/ folder to outside your repo folder, or else the asset
files may be included in the main source package, when you build that.
-1
. cd [wherever-your-assets-folder-is]/assets/
0
. debuild -T clean (optional, if you already have asset files)
2
. cd [wherever-your-assets-folder-is]/assets/
3
. debuild -T clean (optional, if you already have asset files)
Building the source package is a two-step process:
1. debuild -T
build
(this downloads the asset files from srb2.org)
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.
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
+
24
−
11
View file @
349308ef
...
...
@@ -62,6 +62,13 @@ 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
...
...
@@ -100,16 +107,22 @@ binary: binary-indep
dh_builddeb
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/tmp/
*
$(
RM
)
$(
DIR
)
/debian/
$(
PACKAGE
)
.install
$(
RM
)
$(
DIR
)
/debian/files
$(
RM
)
$(
DIR
)
/debian/source/include-binaries
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
.PHONY
:
all clean binary binary-arch binary-indep build
This diff is collapsed.
Click to expand it.
assets/debian/source/options
+
0
−
1
View file @
349308ef
tar-ignore = "tmp/*"
no-pre-clean
This diff is collapsed.
Click to expand it.
debian/README.Debian
+
7
−
4
View file @
349308ef
...
...
@@ -11,7 +11,7 @@ and give them to your users to install with apt-key add. Thanks!
-- Callum Dickinson <gcfreak_ag20@hotmail.com> Fri, 26 Nov 2010 18:25:31 +1300
Build
ing for Launchpad PPA
Sign
ing for Launchpad PPA
First, follow the above instructions to generate a GnuPG key with your identity. You will need
to publish the fingerprint of that key to Ubuntu's key server.
...
...
@@ -25,13 +25,16 @@ upload signed source packages and publish them onto your PPA.
IF YOU UPLOAD A PACKAGE and Launchpad does NOT send you a confirmation or rejection email, that
means your key is not set up correctly with your Launchpad account.
Building for Launchpad PPA
Use these steps to prepare building a source package for Launchpad:
-2
. cd [srb2repo]
-1
. git reset --hard; git clean -fd; git clean -fx;
1
. cd [srb2repo]
2
. git reset --hard; git clean -fd; git clean -fx;
* Resets your repo folder to a committed state and removes untracked files
* If you built srb2-data in the assets/ folder, MAKE SURE THAT FOLDER DOES NOT HAVE ASSETS,
OR THEY WILL BE INCLUDED IN THE MAIN SOURCE PACKAGE!
(for some reason)
OR THEY WILL BE INCLUDED IN THE MAIN SOURCE PACKAGE!
Building the source package takes just one step:
...
...
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