packagelink.sh

 

###
###
###
###
###
###
###
###

PATH=/usr/local/bin:$PATH
CWD=`pwd`
DEPOT=/usr/tomcat/webapps/ROOT/depot/dev

cd $DEPOT



###
### Do com.* packages first
###
find . -type d -print | grep \/com\/ > tmp9.out
find . -type d -print | grep \/com\/ | sed "s/\//./g"  | sed "s/\.com\./\.#\./" | cut -d"#" -f2 | sed "s/^/com/" > tmp10.out

paste tmp10.out tmp9.out | sort -r > tmp20.out


x=`cat tmp20.out`
set $x
while [ $# -gt 1 ]
do
    #echo $1 $2
    echo $2
   
    cd $2
    echo "date" > linklist.sh
    echo "link.sh $DEPOT tree.html $1" >> linklist.sh
    echo "date" >> linklist.sh
    sh ./linklist.sh
    cd $DEPOT

    shift
    shift

done








###
### Do skyway.core.* package 
###
find . -type d -print | grep \/skyway\/core\/ > tmp9.out
find . -type d -print | grep \/skyway\/core\/ | sed "s/\//./g"  | sed "s/\.skyway\./\.#\./" | cut -d"#" -f2 | sed "s/^/skyway/" > tmp10.out

paste tmp10.out tmp9.out | sort -r > tmp20.out


x=`cat tmp20.out`
set $x
while [ $# -gt 1 ]
do
    #echo $1 $2
    echo $2
   
    cd $2
    echo "date" > linklist.sh
    echo "link.sh $DEPOT tree.html $1" >> linklist.sh
    echo "date" >> linklist.sh
    sh ./linklist.sh
    cd $DEPOT

    shift
    shift

done




###
### Do skyway.common.* package 
###
find . -type d -print | grep \/skyway\/common\/ > tmp9.out
find . -type d -print | grep \/skyway\/common\/ | sed "s/\//./g"  | sed "s/\.skyway\./\.#\./" | cut -d"#" -f2 | sed "s/^/skyway/" > tmp10.out

paste tmp10.out tmp9.out | sort -r > tmp20.out


x=`cat tmp20.out`
set $x
while [ $# -gt 1 ]
do
    echo "$2    $1"
   
    cd $2
    echo "date" > linklist.sh
    echo "link.sh $DEPOT tree.html $1" >> linklist.sh
    echo "date" >> linklist.sh
    sh ./linklist.sh
    cd $DEPOT

    shift
    shift

done






###
### Do skyway.cbo.* package 
###
find . -type d -print | grep \/skyway\/cbo\/ > tmp9.out
find . -type d -print | grep \/skyway\/cbo\/ | sed "s/\//./g"  | sed "s/\.skyway\./\.#\./" | cut -d"#" -f2 | sed "s/^/skyway/" > tmp10.out

paste tmp10.out tmp9.out | sort -r > tmp20.out


x=`cat tmp20.out`
set $x
while [ $# -gt 1 ]
do
    echo "$2    $1"
   
    cd $2
    echo "date" > linklist.sh
    echo "link.sh $DEPOT tree.html $1" >> linklist.sh
    echo "date" >> linklist.sh
    sh ./linklist.sh
    cd $DEPOT

    shift
    shift

done




###
### jsi.presentation
###
find . -type d -print | grep \/jsi\/presentation\/ > tmp9.out
find . -type d -print | grep \/jsi\/presentation\/ | sed "s/\//./g"  | sed "s/\.jsi\./\.#\./" | cut -d"#" -f2 | sed "s/^/jsi/" > tmp10.out

paste tmp10.out tmp9.out | sort -r > tmp20.out


x=`cat tmp20.out`
set $x
while [ $# -gt 1 ]
do
    #echo $1 $2
    echo $2
   
    cd $2
    echo "date" > linklist.sh
    echo "link.sh $DEPOT tree.html $1" >> linklist.sh
    echo "date" >> linklist.sh
    sh ./linklist.sh
    cd $DEPOT

    shift
    shift

done


###
### jsi handler
###
find . -type d -print | grep \/jsi\/handler\/ > tmp9.out
find . -type d -print | grep \/jsi\/handler\/ | sed "s/\//./g"  | sed "s/\.jsi\./\.#\./" | cut -d"#" -f2 | sed "s/^/jsi/" > tmp10.out

paste tmp10.out tmp9.out | sort -r > tmp20.out


x=`cat tmp20.out`
set $x
while [ $# -gt 1 ]
do
    #echo $1 $2
    echo $2
   
    cd $2
    echo "date" > linklist.sh
    echo "link.sh $DEPOT tree.html $1" >> linklist.sh
    echo "date" >> linklist.sh
    sh ./linklist.sh
    cd $DEPOT

    shift
    shift

done