~fginther/ppa-dev-tools/ppa_sync-fix-source-package-search

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

CHERRY=$1
RELEASE=$2
PATCHNAME=$3

git pull
git checkout ubuntu
git cherry-pick ${CHERRY}
patch=git show ${CHERRY}
echo ${patch} > ./debian/patches/${PATCHNAME}
git reset --hard HEAD^
git add debian/patches/${PATCHNAME}
commit_message="Cherrypick ${CHERRY} from upstream as ${PATCHNAME}"
dch -i -m ${commit_message}
git commit -a -m ${commit_message}