31 lines
766 B
Bash
Executable file
31 lines
766 B
Bash
Executable file
#! /bin/sh
|
|
#
|
|
# $FreeBSD: tagcheck,v 1.10 2003/01/10 03:05:43 kris Exp $
|
|
|
|
# TAG add/mov/del repo files...
|
|
# $1 $2 $3 $4 ...
|
|
|
|
case "$1" in
|
|
RELENG*)
|
|
;;
|
|
RELEASE*)
|
|
;;
|
|
*)
|
|
exit 0 # not reserved, ok.
|
|
;;
|
|
esac
|
|
|
|
USER=`/usr/bin/id -un`
|
|
case "$USER" in
|
|
peter | jdp | markm | obrien | murray | jhb | bmah | scottl | kris | nik)
|
|
exit 0 # ok
|
|
;;
|
|
*)
|
|
echo "$USER does not have permission to perform this tag operation!" 1>&2
|
|
echo "RELENG* tag operations are reserved for release engineering!" 1>&2
|
|
echo "RELEASE* tag operations are reserved for portmgr and doceng!" 1>&2
|
|
echo "Use 'cvs add' or 'cvs rm' to add/remove files from branches!" 1>&2
|
|
echo "$*" | /usr/bin/mail -s "NCVS TAG" cvs
|
|
exit 1
|
|
;;
|
|
esac
|