#!/bin/bash set -o errexit set -o nounset # This is based on a script named review.sh over at # https://github.com/whatwg/whatwg.org/tree/master/resources.whatwg.org/build # # Please see https://github.com/whatwg/meta/blob/master/MAINTAINERS.md for information on creating # and announcing Review Drafts. header() { echo "" echo -e "\\x1b[1m$1\\x1b[0m" echo "" } header "Creating a git branch with a Review Draft:" git checkout master git checkout -b "review-draft-$(date +'%F')" INPUT="source" mkdir -p "review-drafts" REVIEW_DRAFT="review-drafts/$(date +'%Y-%m').wattsi" # Note that %B in date is locale-specific. Let's hope for English. sed -e 's/^