OSDN Git Service

下記のメール
[linuxjm/jm.git] / bin / chkcvs.sh
1 #!/bin/sh
2 #
3 # CVS リポジトリを調べるスクリプト.
4 # JM/stamp/cvs-release-modified → release/, contrib/ 以下のページが変わったかどうか
5 # JM/stamp/cvs-status-modified → translation_list が変わったかどうか
6 #
7 RM=stamp/cvs-release-modified
8 SM=stamp/cvs-status-modified
9 IM=stamp/info-release-modified
10
11 if [ ! -f $RM ]; then
12         touch $RM
13 elif (find manual -newer $RM | egrep "(release|contrib)/man[1-9]/.*\.[1-9]"); then
14         touch $RM
15         touch $SM
16 fi
17
18 if [ ! -f $SM ]; then
19         touch $SM
20 elif (find manual -name translation_list -newer $SM | grep -q "."); then
21         touch $SM
22 fi
23
24 if [ ! -f $IM ]; then
25         touch $IM
26 elif (find info -newer $IM | grep -q "release"); then
27         touch $IM
28 fi
29