doc: install-html target should create the html directory
[guilt.git] / guilt-refresh
blob293da6adfd567338393b0c661ec68efdb43ad5d0
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006-2013
6 USAGE="[--git] [--diffstat]"
7 if [ -z "$GUILT_VERSION" ]; then
8 echo "Invoking `basename "$0"` directly is no longer supported." >&2
9 exit 1
12 _main() {
14 while [ $# -gt 0 ]; do
15 case "$1" in
16 --git)
17 gdiff=t ;;
18 --diffstat)
19 dstat=t ;;
21 usage ;;
22 esac
23 shift
24 done
26 TOP=`get_top`
28 if [ -z "$TOP" ]; then
29 die "No patches applied; try guilt push first"
32 refresh_patch "$TOP" "$gdiff" "$dstat"
33 echo "Patch $TOP refreshed"