blob: f7b01a1493c23458deb9048a97b058260fce5363 [file] [log] [blame]
# This script file is to help get builds started "fresh", when
# the releng.control directory already exists on local file system.
# While it is in the cvs repository in releng.control, it is
# meant to be executed from the parent directory
# of releng.control on the file system.
# export is used, instead of checkout, just to avoid the CVS directories and since this code
# for a local build, there should never be a need to check it back in to CVS.
echo " saving serialized state ..."
cp releng.control/*.ser .
echo " removing all of releng.control ..."
rm -fr releng.control
mkdir -p releng.control
echo " checking out head of releng.control from cvs ..."
cvs -d export -d releng.control -r HEAD webtools.releng/releng.control
echo " restoring serialized state ..."
mv *.ser releng.control
echo " making sure releng.control files are executable and have proper EOL format ..."
dos2unix -quiet -keepdate releng.control/*.sh* releng.control/**/*.properties releng.control/*.xml > /dev/null 2>/dev/null
chmod +x releng.control/*.sh