freebsd-nq/contrib/ntp/scripts/build/checkChangeLog
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

30 lines
453 B
Bash
Executable File

#! /bin/sh
. ./packageinfo.sh
# HMS: Irix doesn't have 'head'...
cl1=`head -1 ChangeLog || sed -e 1q ChangeLog`
case "$repotype" in
dev) ;;
stable) ;;
*) echo "Unexpected repotype <$repotype>"
exit 1
;;
esac
case "$repotype$cl1" in
dev---)
echo "Dev repo ChangeLog must not begin with '---'!"
exit 1
;;
dev*)
;;
stable---)
;;
stable*)
echo "Stable repo Changelog must begin with '---'!"
exit 1
;;
esac