From df00c9b79edeeda722ca04b87c55e10e0e16cc8d3858bf7868ccb8a98ed6c6ce Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 20 Apr 2015 14:23:20 +0000 Subject: [PATCH] add usage instructions OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=319 --- update_git.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/update_git.sh b/update_git.sh index a20cb86..025625c 100644 --- a/update_git.sh +++ b/update_git.sh @@ -2,6 +2,17 @@ # # based on qemu's update_git.sh this program updates the patches # applied on top of a tarball based on commmits in git +# +# how to use: +# quilt setup rpmlint.spec +# cp rpmlint-$RPMLINTVERSION/series . +# mkdir ~/git; cd ~/git +# git clone git://git.code.sf.net/p/rpmlint/code rpmlint-code +# git checkout -b opensuse-$RPMLINTVERSION v$RPMLINTVERSION +# git quiltimport --patches /where/rpmlint/checkout/is +# ... add/remove/rebase patches +# ... to rebase to a new version create branch and modify versions below +# when done run update_git.sh GIT_TREE=git://git.code.sf.net/p/rpmlint/code GIT_LOCAL_TREE=~/git/rpmlint-code @@ -10,8 +21,8 @@ GIT_UPSTREAM_TAG=v1.6 cleanup() { - [ -z "$GIT_DIR" ] || rm -rf "$GIT_DIR" - [ -z "$CMP_DIR" ] || rm -rf "$GIT_DIR" + [ -z "$GIT_DIR" ] || rm -rf "$GIT_DIR" + [ -z "$CMP_DIR" ] || rm -rf "$GIT_DIR" } trap cleanup EXIT