blob: ea32247e4c91d44d560835139d44b6cbae079326 (
plain)
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
35
36
37
|
#!/bin/bash
# Expected arguments:
# $1 = out_dir
# $2 = dist_dir
# $3 = build_number
PROG_DIR=$(dirname "$0")
function die() {
echo "$*" > /dev/stderr
echo "Usage: $0 <out_dir> <dest_dir> <build_number>" > /dev/stderr
exit 1
}
while [[ -n "$1" ]]; do
if [[ -z "$OUT" ]]; then
OUT="$1"
elif [[ -z "$DIST" ]]; then
DIST="$1"
elif [[ -z "$BNUM" ]]; then
BNUM="$1"
else
die "[$0] Unknown parameter: $1"
fi
shift
done
if [[ -z "$OUT" ]]; then die "## Error: Missing out folder"; fi
if [[ -z "$DIST" ]]; then die "## Error: Missing destination folder"; fi
if [[ -z "$BNUM" ]]; then die "## Error: Missing build number"; fi
cd "$PROG_DIR"
## TODO: Invoke Maven Tycho build here
echo "## Copying ADT plugins and bundle into destination folder"
echo "Temporary artifact until Tycho is enabled" > "$DIST"/temporary-artifact.txt
|