File: rcsupdateall

package info (click to toggle)
afbackup 3.3.8.1beta2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,128 kB
  • ctags: 3,370
  • sloc: ansic: 46,932; sh: 4,654; tcl: 4,199; makefile: 536; csh: 416; perl: 133; sed: 93
file content (20 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# $Source: /home/alb/afbackup/afbackup-3.3.8beta7/RCS/rcsupdateall,v $
# $Id: rcsupdateall,v 1.2 2004/07/08 20:36:11 alb Exp alb $
#

PWD=`pwd`
SYMNAME=`basename $PWD | sed 's/^[^-]*-/v/g' | tr . - | sed 's/beta/b/g;s/alpha/a/g'`

echo "OK to check in all files with the symbolic tag $SYMNAME (yes/no) ?"
read a
echo "$a" | egrep -i '^ye?s?$' >/dev/null
if [ $? -ne 0 ] ; then
  echo "You disagree. Ok, then patch me. Exiting." >&2
  exit 1
fi

for f in `find . -type f -print` ; do
  ci -l -N"$SYMNAME" -m"automatically checked in by `basename $0`." $f </dev/null
done