File: gen-doc

package info (click to toggle)
fcron 3.0.1-1.3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 3,028 kB
  • ctags: 642
  • sloc: ansic: 7,978; sh: 1,107; makefile: 352; perl: 57
file content (24 lines) | stat: -rwxr-xr-x 388 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# $Id: gen-doc,v 1.2 2002/09/22 15:11:10 fcron Exp $

PREVIOUS=`cat ./VERSION`


if test $PREVIOUS != $1; then
    cd doc
    for i in *
    do
    if test $i != RCS; then
    if echo $i | egrep -e '[[:upper:]]+' > /dev/null; then
	echo $i
	sed -e "s:fcron version [0-9\.]*:fcron version $1:" < $i > tmp
	mv -f tmp $i
	chown $USER $i
	rm -f tmp
    fi
    fi
    done    
fi