File: rules

package info (click to toggle)
bsh 2.0b4-19
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,220 kB
  • sloc: java: 23,431; xml: 4,500; sh: 139; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 1,055 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export CLASSPATH=/usr/share/java/bsf.jar:/usr/share/java/servlet-api-3.1.jar:/usr/share/java/javacc.jar

%:
	dh $@ --with maven-repo-helper

override_dh_auto_build:
	dh_auto_build -- javadoc jarall -Dcompile.debug=true

override_dh_auto_test:
	dh_auto_build -- test

override_dh_auto_install:
	mh_installpoms -plibbsh-java
	mh_installjar -plibbsh-java -l debian/pom.xml dist/bsh-$(DEB_VERSION_UPSTREAM).jar
	install -m 755 debian/_bsh debian/bsh/usr/bin/bsh
	install -m 755 debian/xbsh debian/bsh/usr/bin/

	mkdir -p debian/bsh-src/usr/src/bsh-src
	tar --exclude debian --exclude classes --exclude dist --exclude api \
	    --clamp-mtime --mtime="@$(SOURCE_DATE_EPOCH)" \
		-zcf debian/bsh-src/usr/src/bsh-src/bsh.tar.gz *

get-orig-source:
	-uscan --download-current-version --force-download --rename --repack

get-orig-pom:
	wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/org/beanshell/bsh/$(DEB_VERSION_UPSTREAM)/bsh-$(DEB_VERSION_UPSTREAM).pom