#!/bin/sh

REV=$1
OS_EXT=$2
COMPANY_EXT=$3

echo $OS_EXT


echo $OS_EXT

MAJOR_VERSION=rcts-3.5.0

SVNURL=http://svn.solbox.com/svn/interactive

if [ $# -lt 3 ]
then
        echo "$0 [REVISONNUM] [OS EXT] [COMPANY EXT]"
        echo "REVISONNUM : Maximum revision of applications."
        echo "	ex)  R0697"
        echo "OS EXT : CentOS5.4."
        echo "COMPANY EXT :  CC Nmame"
        exit 1
fi


rm -rf rcts*
mkdir /root/work/files/$MAJOR_VERSION.$REV
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_du" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_du" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_rmcd" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_rmcd" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_mngd" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_mngd" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_mond" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_mond" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_mond" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_show" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_sscd" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_sscd" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_syncd" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_syncd" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_syncd" "/root/work/files/$MAJOR_VERSION.$REV/" "diff_com.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_cmove" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_cmove" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_cmove" "/root/work/files/$MAJOR_VERSION.$REV/" "psql" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_cmove" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_cmovegen.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/rc_gcmd" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_gcmd" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/rcts/logmngd" "/root/work/files/$MAJOR_VERSION.$REV/" "logmngd" "" "$OS_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/conf" "/root/work/files/$MAJOR_VERSION.$REV/" "postconfig" "" "$COMPANY_EXT"
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/conf" "/root/work/files/$MAJOR_VERSION.$REV/" "rcts.conf.in" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/installsh" "/root/work/files/$MAJOR_VERSION.$REV/" "rcts_ctl" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/installsh" "/root/work/files/$MAJOR_VERSION.$REV/" "rcts_config.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/installsh" "/root/work/files/$MAJOR_VERSION.$REV/" "sysctl_config_rcts.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/conf" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_sscd.sql" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/conf" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_mmngd_CA.pem" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/conf" "/root/work/files/$MAJOR_VERSION.$REV/" "rc_mmngd_privkey.pem" "" ""
