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

update get-orig-source.sh for Gajim >= 1.1

parent e8e7e04b
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,13 @@
set -e
test -n "$1"
test -n "$1" || (
echo "call $0 upstream-plugin-dir gajim-compat-version"
echo "e.g. $0 anti_spam 1.1"
)
PLUGIN="$1"
test -n "$2"
GAJIM_COMPAT="$2"
REPO=gajim-plugins
PACKAGE=gajim-$(echo "$PLUGIN" | sed 's/_//g')
......@@ -13,6 +18,11 @@ CWD=$(pwd)
TMPDIR=$(mktemp -d)
cd "$TMPDIR"
git clone https://dev.gajim.org/gajim/"$REPO".git
( cd ./"$REPO"/ &&
git checkout gajim_"$GAJIM_COMPAT" )
( cd ./"$REPO"/"$PLUGIN"/ &&
dos2unix $(find . -name "*.py" -o -name "*.ini" -o -name "*.ui" \
-o -name "*.md" -o -name COPYING -o -name CHANGELOG) )
VERSION=$(grep ^version: ./"$REPO"/"$PLUGIN"/manifest.ini | sed 's/.*: *//')
FILENAME="$CWD"/../"$PACKAGE"_"$VERSION".orig.tar.gz
test ! -e "$FILENAME"
......
......@@ -2,6 +2,3 @@
%:
dh $@ --with python3
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