Commit c0702fc8 authored by intrigeri's avatar intrigeri

Add a doc-whatchanged script, on request from translators.

parent 5df9cda1
#!/bin/sh
set -e
set -u
### Global variables
PROG=$(basename "$0")
USAGE="Usage: $PROG TIME
Example: $PROG '2 weeks ago'"
### Functions
fatal() {
echo "$*" >&2
exit 2
}
display_usage_and_error_out() {
fatal "$USAGE"
}
### Main
[ $# -eq 1 ] || display_usage_and_error_out
TIME="$1"
git diff "master@{$TIME}..master" --stat --stat=200 -- wiki/src \
| grep --color=never -E '\.(mdwn|html)\s+' \
| grep -E -v '^\s+wiki/src/(blueprint|contribute)/'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment