File: propagateDistToLombok

package info (click to toggle)
lombok-patcher 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 324 kB
  • sloc: java: 2,150; xml: 211; sh: 38; makefile: 11
file content (29 lines) | stat: -rwxr-xr-x 821 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
if [ "$1" == "" ]; then
	echo 'supply the version as first argument, such as 0.22'
	exit 1
fi

VERSION="$1"

if [ ! -d ../lombok ]; then
	echo 'Expected ../lombok to refer to a directory containing the lombok project.'
	exit 1
fi

if [ ! -d ../lombok/ivyCache/org.projectlombok/lombok.patcher/jars ]; then
	echo 'Expected ivy cache to already exist at: ../lombok/ivyCache/org.projectlombok/lombok.patcher/jars'
	exit 1
fi

ant dist || exit 0

if [ -d ../lombok/lib/runtime ]; then
	cp dist/lombok.patcher.jar ../lombok/lib/runtime/org.projectlombok-lombok.patcher.jar
fi

if [ -d ../lombok/lib/build ]; then
	cp dist/lombok.patcher.jar ../lombok/lib/build/org.projectlombok-lombok.patcher.jar
fi

cp dist/lombok.patcher.jar ../lombok/ivyCache/org.projectlombok/lombok.patcher/jars/lombok.patcher-$VERSION.jar