-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakerepository.sh
More file actions
executable file
·35 lines (25 loc) · 1.98 KB
/
makerepository.sh
File metadata and controls
executable file
·35 lines (25 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
rm -rf /tmp/testscript_repo
rm -rf $3
swtbot_version=
eclipse_version=$1
if [ "$eclipse_version" == "3.5" ]; then
swtbot_version="galileo"
else
swtbot_version="helios"
fi
echo "EHOME: $ECLIPSE_HOME"
echo "Eclipse version: $1"
echo "Source: $2"
echo "Destination: $3"
echo "Artifacts: $4"
echo "Profile: $5"
# Make a P2 repo containing just our code
${ECLIPSE_HOME}/eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:///tmp/testscript_repo -artifactRepository file:///tmp/testscript_repo -source ${2} -configs gtk.linux.x86,win32.win32.x86 -publishArtifacts -noSplash
# Create a P2 artifact repository containing our plugins and all their dependencies
${ECLIPSE_HOME}/eclipse -application org.eclipse.equinox.p2.director -repository file:///tmp/testscript_repo/,http://download.eclipse.org/tools/gef/updates/releases,http://download.eclipse.org/technology/swtbot/${swtbot_version}/dev-build/update-site/,http://download.eclipse.org/eclipse/updates/${eclipse_version} -installIU ${4} -consoleLog -destination ${3} -profile $5 -noSplash
# Mirror the metadata from all the source repositories we used
${ECLIPSE_HOME}/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source file:///tmp/testscript_repo -destination file://${3} -consoleLog -noSplash
${ECLIPSE_HOME}/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source http://download.eclipse.org/technology/swtbot/${swtbot_version}/dev-build/update-site/ -destination file://${3} -consoleLog -noSplash
${ECLIPSE_HOME}/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source http://download.eclipse.org/tools/gef/updates/releases -destination file://${3} -consoleLog -noSplash
${ECLIPSE_HOME}/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source http://download.eclipse.org/eclipse/updates/${eclipse_version} -destination file://${3} -consoleLog -noSplash