File: build.patch

package info (click to toggle)
portabase 2.1%2Bgit20120910-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 8,648 kB
  • ctags: 3,498
  • sloc: cpp: 32,214; sh: 2,868; ansic: 2,320; makefile: 481; python: 121; xml: 23; asm: 10
file content (35 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Last-Update: 2012-09-18
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Forwarded: not-needed
Description: patch upstream build script to use it for building help files

--- a/packaging/linux/debian.sh
+++ b/packaging/linux/debian.sh
@@ -1,18 +1,5 @@
 #!/bin/sh
 
-# To be run from the root directory of the PortaBase source code, as
-# packaging/linux/debian.sh
-
-# Generates a binary package by default.  To instead create a source package
-# (for example, to upload to an autobuilder), add the "--source" parameter.
-
-VERSION=`cat packaging/version_number`
-DEST=build/debian/portabase-$VERSION
-
-rm -rf build/debian
-packaging/copy_source.sh $DEST
-cd $DEST
-
 # generate the help files here, since even unstable uses an outdated Sphinx
 rm -rf resources/help/_build/_static
 packaging/generate_help.sh en
@@ -38,8 +25,3 @@
     fi
 done
 
-if [ "$1" = "--source" ]; then
-    dpkg-buildpackage -rfakeroot -sa -S
-else
-    dpkg-buildpackage -rfakeroot -uc -us -sa
-fi