[pkg-wine-party] [wine] 16/17: Consistently use variables for branch names.

Jens Reyer jreyer-guest at moszumanska.debian.org
Sun Jan 21 01:39:20 UTC 2018


This is an automated email from the git hooks/post-receive script.

jreyer-guest pushed a commit to branch master
in repository wine.

commit da74af6ae6d4b976b4ab30c47c136808bcdccb59
Author: Jens Reyer <jre.winesim at gmail.com>
Date:   Sat Jan 20 19:08:52 2018 +0100

    Consistently use variables for branch names.
    
    Also consistently use posix-recommended syntax for command
    substitution.
---
 debian/scripts/import | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/scripts/import b/debian/scripts/import
index f3ad258..ba2f4d4 100755
--- a/debian/scripts/import
+++ b/debian/scripts/import
@@ -20,6 +20,7 @@ git update-index --assume-unchanged configure include/config.h.in
 # pull specified tag from upstream repository
 version="$1"
 debian="https://anonscm.debian.org/git/pkg-wine/wine.git"
+debian_branch="master"
 upstream_branch="upstream"
 winehq="git://source.winehq.org/git/wine.git"
 tag="wine-$version"
@@ -28,12 +29,12 @@ git pull $debian ${upstream_branch}
 git pull --no-edit $winehq tag "$tag" || echo "unable to fetch tag $tag"
 
 # merge upstream into master (favoring "their" changes)
-git checkout master
-git merge --strategy-option=theirs upstream
+git checkout ${debian_branch}
+git merge --strategy-option=theirs ${upstream_branch}
 
 # format the "New upstream release" message
-tag_time=`git cat-file tag "$tag" | sed -n 's/tagger .*<.*> \([0-9]*\) .*/\1/p'`
-release_date=`LC_ALL=C date -u -d "@$tag_time" +"%b %-d, %Y"`
+tag_time=$(git cat-file tag "$tag" | sed -n 's/tagger .*<.*> \([0-9]*\) .*/\1/p')
+release_date=$(LC_ALL=C date -u -d "@$tag_time" +"%b %-d, %Y")
 
 # create the initial changelog entry
 dch -v "$(echo $version|sed "s/-/~/")-1" "New upstream release $version, released $release_date."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git



More information about the pkg-wine-party mailing list