#!/bin/sh

# 작업 폴더 정보 
# - 버전 정보 변경시 수정할 것.
MAJOR_VERSION=rcdb-9.3.17


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

LOCAL_PATH=/root/work/rcdb_files


# 이전 작업 폴더 삭제 
rm -rf $LOCAL_PATH/rcdb*

# 신규 작업폴더 생성
mkdir $LOCAL_PATH/$MAJOR_VERSION


# SVN 에서 파일 다운로드 수행
# - pgsql 다운로드시 버전 정보 수정 할 것.

./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "conf_sample.tar" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "create_RCDB.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "get_load.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "rcdb_schema.sql" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "RcdbFailover" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "report.sh" "" ""
./getlastsvn.sh "FILE" "$SVNURL" "/tags/release/RCDB" "/root/work/rcdb_files/$MAJOR_VERSION/" "pgsql.9.3.17.tar.gz" "" ""
