Added option to deploy start page really fast

This commit is contained in:
Simon Pamies committed 2013-06-28 11:51:38 +02:00
1 parent 5a79e71a4f
commit 93cb68810a
1 file changed
+12
+12
View File
@@ -447,3 +447,15 @@ if [[ "$@" == "remote-deploy" ]]; then
echo "Restarted remote server. Please check."
fi
if [[ "$@" == "deploy-startpage" ]]; then
TARGET_DIR_STARTPAGE=$ACDIR/tmp/jetty-0.0.0.0-8889-bundlefile-_-any-/webapp/
read -s -n1 -p "Copying $PROJECT_HOME/java/com.sap.sailing.www/index.html to $TARGET_DIR_STARTPAGE - is this ok (y/n)?" answer
case $answer in
"Y" | "y") OK=1;;
*) echo "Aborting... nothing has been changed for startpage!"
exit;;
esac
cp $PROJECT_HOME/java/com.sap.sailing.www/index.html $TARGET_DIR_STARTPAGE
fi