blob: 4700d7f776052d757a0253ad27cd6e31965538ad [file] [log] [blame]
echo $1 $2
declaredStream=$1
declaredDir=$2
FROMDIR=../committers/drops
TODIR=../downloads/drops/${declaredStream}
FROMDIR=$FROMDIR/${declaredStream}/${declaredDir}
echo "declaring build ${declaredDir} on buildstream ${declaredStream}"
echo " into ${TODIR}"
echo " using the build from ${FROMDIR}"
cp -R ${FROMDIR} ${TODIR}
fromString="webtools/committers"
toString="webtools/downloads"
replaceCommand="s!${fromString}!${toString}!g"
perl -w -pi -e ${replaceCommand} ${TODIR}/${declaredDir}/*.php
# update the update site
#cp -ruv $HOME/downloads/webtools/committers/drops/$1/updateSite/features/ $HOME/downloads/webtools/milestones/
#cp -ruv $HOME/downloads/webtools/committers/drops/$1/updateSite/plugins/ $HOME/downloads/webtools/milestones/