0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2013, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
362a27e81e6de298b6ff31457ad22380a6d825c2Mark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# file, You can obtain one at http://mozilla.org/MPL/2.0/.
362a27e81e6de298b6ff31457ad22380a6d825c2Mark Andrews# branchsync:
362a27e81e6de298b6ff31457ad22380a6d825c2Mark Andrews# pull in changes from a main BIND 9 release branch to a subscription
362a27e81e6de298b6ff31457ad22380a6d825c2Mark Andrews# branch (e.g., from v9_9 to v9_9_sub). This excludes commits from the
362a27e81e6de298b6ff31457ad22380a6d825c2Mark Andrews# 'tinderbox' user (copyright updates and doc regeneration) because those
362a27e81e6de298b6ff31457ad22380a6d825c2Mark Andrews# will be taken care of in the subscription branch itself.
# branchsync.sh [ -i ] [ -c ]
if [ -f EXCLUDED ]; then
git log -1 --pretty=format:%s%n%b $2 > orig_commit_msg.tmp
tail -n +2 orig_commit_msg.tmp > remainder.tmp
echo $firstline > commit_msg.tmp
if [ ! -f branchsync.dat ]; then
if [ -z "$continuing" ]; then
if [ -n "$status" ]; then
echo "$status"