Browse files

added copying to the proper update site directory at LARA

  • Loading branch information...
1 parent d5c6aeb commit 5a7b7421df7b4fdfe455ce51acd4867a97364aef @kaptoxic committed Feb 27, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 ch.epfl.insynth.build/ecosystem-build.sh
View
8 ch.epfl.insynth.build/ecosystem-build.sh
@@ -10,6 +10,8 @@ SCALA_FLAVORS=( "2.9.x" "2.10.x" )
ROOT_DIR=${PWD}
TARGET_DIR=/localhome/kuraj/temp/insynth-maven-build
+mkdir -p ${TARGET_DIR}
+
for eclipse_flavor in "${ECLIPSE_FLAVORS[@]}"
do
for array_index in `seq 0 1`
@@ -26,10 +28,14 @@ mvn -Pset-versions -P$eclipse_flavor -P$scala_ide_flavor -P$scala_flavor -Dtycho
mvn -Pset-versions -P$eclipse_flavor -P$scala_ide_flavor -P$scala_flavor clean package
rm -rf ${TARGET_DIR}/$COMB
-mkdir -p ${TARGET_DIR}
cp -r ${ROOT_DIR}/ch.epfl.insynth.update-site/target/site/ ${TARGET_DIR}/$COMB
+# if needed publishing to LARA update site
+echo "Copying files to insynth@laraserver.epfl.ch"
+ssh insynth@laraserver.epfl.ch "rm -rf ~/public_html/$COMB"
+scp -r ${TARGET_DIR}/$COMB insynth@laraserver.epfl.ch:~/public_html/
+
done
done

0 comments on commit 5a7b742

Please sign in to comment.