Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-10-01 13:54:03 +0000
committerCamille Letavernier2014-10-01 13:54:03 +0000
commitbf12e65f6b6406da2ca6d52f511ed30d744b8432 (patch)
treea2b4c5255c4fbf1fb0b948e79626a4eb64951ddc /releng/toolkit
parent1c6208fab172f96436eadfeca5d3c003caf03c23 (diff)
downloadorg.eclipse.papyrus-bf12e65f6b6406da2ca6d52f511ed30d744b8432.tar.gz
org.eclipse.papyrus-bf12e65f6b6406da2ca6d52f511ed30d744b8432.tar.xz
org.eclipse.papyrus-bf12e65f6b6406da2ca6d52f511ed30d744b8432.zip
[Releng] Add post-build script for Extra build
Diffstat (limited to 'releng/toolkit')
-rw-r--r--releng/toolkit/server/build-after-extra.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/releng/toolkit/server/build-after-extra.sh b/releng/toolkit/server/build-after-extra.sh
new file mode 100644
index 00000000000..e39ece1c04d
--- /dev/null
+++ b/releng/toolkit/server/build-after-extra.sh
@@ -0,0 +1,42 @@
+#--------------------------------------------------------------------------------
+# Copyright (c) 2012-2014 CEA LIST.
+#
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Nicolas Bros (Mia-Software)
+# Camille Letavernier (CEA LIST)
+#--------------------------------------------------------------------------------
+
+########## publishing ##########
+
+##
+## Known variables:
+## BUILD_ID=2014-10-01_05-16-17
+##
+## For stable builds:
+## BUILD_ALIAS=M4
+##
+
+p2UpdateSiteDir=${WORKSPACE}/releng/extras/target/repository
+updateSite=${WORKSPACE}/repository
+
+updateZipName=Papyrus-Extra-Update.zip
+zipName=Papyrus-Extra.zip
+
+rm -rf tmp
+mkdir -p "tmp/extra"
+
+rm -rf $updateSite
+mv $p2UpdateSiteDir $updateSite
+
+# create the update site zip
+(cd $updateSite && zip -r $updateZipName *)
+mv $updateSite/$updateZipName "tmp/$FULL_BUILD_ID"
+
+(cd tmp && zip -r $zipName *)
+mv tmp/$zipName .

Back to the top