guilt: check status file for being old format
[guilt/mob.git] / guilt-next
blob510232ba69eb6cf24a03987e2167ea309dbb3114
1 #!/bin/sh
3 # Copyright (c) Josef "Jeff" Sipek, 2006, 2007
6 USAGE="[-p|--path]"
7 . `dirname $0`/guilt
9 while [ $# -ne 0 ]; do
10 case "$1" in
11 -p|--path)
12 path="$GUILT_DIR/$branch/" ;;
14 usage ;;
15 esac
16 shift
17 done
19 n=`wc -l < $applied`
20 n=$(($n + 1))
22 p=`get_series | awk "{ if (NR == $n) print \\$0}"`
24 if [ -n "$p" ]; then
25 echo $path$p