ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/config/fixdocs.sh
(Generate patch)

Comparing config/fixdocs.sh (file contents):
Revision 1.2 by sashby, Wed May 3 16:32:55 2006 UTC vs.
Revision 1.3 by sashby, Wed Jun 14 08:46:58 2006 UTC

# Line 1 | Line 1
1   #!/bin/bash
2   # Created: Vipin Bhatnagar 28-Mar-2006
3 < # replaces the @DATE@ strings in the doc files
4 < # with mtime for doxygen
5 < #
3 > # replaces the @DATE@ strings in the doc files with mtime & @CVS_TAG@
4 > # with the committed tag in CMS TagCOllector
5 > # Now uses arrays for SubSystem/Package Tag version: 11-Jun-2006 VB
6   ARG=$1
7 + declare -a SubsPackNm=(`CmsTCPackageList.pl --rel $ARG |cut -d' ' -f1`)
8 + declare -a SubsPackTg=(`CmsTCPackageList.pl --rel $ARG |cut -d' ' -f2`)
9   for i in src/*/*/doc/*.dox; do
8  SUBPACK=`echo $i | cut -d "/" -f2,3`
9  CVTAG=`CmsTCPackageList.pl --pack $SUBPACK --rel $ARG | cut -d " " -f2`
10    DATUM=`/usr/bin/stat --format="%y" "$i" | cut -d " " -f1`
11 <  sed -e "s/@DATE@/$DATUM/g" \
12 <      -e "s/@CVS_TAG@/$CVTAG/g" "$i" > "${i/.dox}".doy
11 >  SUBPACK=`echo $i | cut -d "/" -f2,3`
12 >  for (( j = 0 ; j < ${#SubsPackNm[@]} ; j++ ))
13 >  do
14 >    if [ $SUBPACK = ${SubsPackNm[$j]} ]
15 >    then
16 >      CVSTAG=${SubsPackTg[$j]}
17 >      sed -e "s/@DATE@/$DATUM/g" \
18 >          -e "s/@CVS_TAG@/$CVSTAG/g" "$i" > "${i/.dox}".doy
19 >    fi
20 >  done
21   done

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines