Skip to content
Snippets Groups Projects
Commit df9b740c authored by Martin's avatar Martin
Browse files

add get-orig-source.sh

parent 9285c42d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -e
test -n "$1"
PLUGIN="$1"
REPO=gajim-plugins
PACKAGE=gajim-$(echo "$PLUGIN" | sed 's/_//g')
EXCLUDE=--exclude=qrcodewin
CWD=$(pwd)
TMPDIR=$(mktemp -d)
cd "$TMPDIR"
git clone https://dev.gajim.org/gajim/"$REPO".git
VERSION=$(grep ^version: ./"$REPO"/"$PLUGIN"/manifest.ini | sed 's/.*: *//')
FILENAME="$CWD"/../"$PACKAGE"_"$VERSION".orig.tar.gz
test ! -e "$FILENAME"
tar $EXCLUDE -czvf "$FILENAME" -C "$REPO"/ "$PLUGIN"/
echo You may remove "$TMPDIR" now
......@@ -2,3 +2,6 @@
%:
dh $@ --with python2
get-orig-source:
./debian/get-orig-source.sh roster_tweaks
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment