#!/bin/csh

mkdir ocssw_ocm2
cd ocssw_ocm2
svn export svn://svn0.domain.sdps/OCSSW/trunk/OCSSW.env OCSSW.env
svn export svn://svn0.domain.sdps/OCSSW/trunk/README README
svn export svn://svn0.domain.sdps/OCSSW/trunk/build  build
mkdir -p run/data run/bin
svn export svn://svn0.domain.sdps/OCSSW/trunk/run/data/common  run/data/common
svn export svn://svn0.domain.sdps/OCSSW/trunk/run/data/ocm2  run/data/ocm2

cd build/src
make bare
make libs
cd l2gen
make install
cd ../..
make clean
cd ../..
tar cvf ocssw_ocm2.tar ocssw_ocm2
bzip2 ocssw_ocm2.tar

exit 0

