Browse Source

added script for easier creating dpkg source packages

tags/1.4
Sven Oliver Moll 6 months ago
parent
commit
bcbd2ad1d2
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      mkdebsrc.sh

+ 16
- 0
mkdebsrc.sh View File

@@ -0,0 +1,16 @@
#!/bin/sh

set -e

cd "$(dirname "${0}")"

if [ ! -d '.git' ]; then
echo "this script works only on a git repository."
exit 1
fi

version="$(git describe --tags | cut -f1-2 -d- | tr - .)"
head -1 debian/changelog | grep -q "(${version})" ||
dch -v "${version}"
exec dpkg-buildpackage -S -d


Loading…
Cancel
Save