]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools/tarsource.sh: create debian changelog
authorDavid Lamparter <equinox@diac24.net>
Mon, 10 Dec 2018 23:18:12 +0000 (00:18 +0100)
committerDavid Lamparter <equinox@diac24.net>
Fri, 18 Jan 2019 14:36:40 +0000 (15:36 +0100)
Signed-off-by: David Lamparter <equinox@diac24.net>
doc/developer/packaging-debian.rst
tools/tarsource.sh

index 1ace8f5f78e4e392f27f0c7fe660acfd06a6b215..8745bf9063bacaf2d16bb268649af0db79939de0 100644 (file)
@@ -31,21 +31,15 @@ buster.)
 
       sudo mk-build-deps --install debian/control
 
-5. Run ``bootstrap.sh``:
-
-   (This step should be omitted if you are using a "debian" branch, as opposed
-   to the "master", a "stable/X.X" or any other non-"debian" branch.)
+5. Run ``tools/tarsource.sh -V``:
 
    .. code-block:: shell
 
-      ./bootstrap.sh
-      ./configure --with-pkg-extra-version=-MyDebPkgVersion
-
-   .. note::
+      ./tools/tarsource.sh -V
 
-      Configure parameters are not important for the Debian Package building -
-      except the `with-pkg-extra-version` if you want to give the Debian
-      package a specific name to mark your own unoffical build.
+   This script sets up the `debian/changelog-auto` file with proper version
+   information.  If you want to append a local build identifier, look at the
+   `-e` option.
 
 6. Build Debian Package
 
index 78efae35778bea67438c2695ddbca1792b8b557c..a197244f848f3f5db4af7ab58a13b9fc354d2295 100755 (executable)
@@ -232,6 +232,9 @@ DIST_PACKAGE_VERSION="$pkgver$extraver"
 gitts="$gitts"
 taropt="$taropt"
 EOF
+       sed -e "s%@VERSION@%$pkgver$extraver%" \
+               < debian/changelog-auto.in \
+               > debian/changelog-auto
        exit 0
 fi