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 38 39 40 41
|
#!/usr/bin/make -f
# debian/rules file for bsh (uses cdbs)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
PACKAGE := $(DEB_SOURCE_PACKAGE)
VERSION := $(DEB_UPSTREAM_VERSION)
JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS := servlet-api-3.0 bsf javacc
DEB_ANT_BUILD_TARGET := javadoc jarall test
ANT_OPTS = -Dcompile.debug=true
clean::
# remove tests which also fail with SUN JDK 1.4
rm -f tests/test-scripts/accessibility.bsh \
tests/test-scripts/class13.bsh \
tests/test-scripts/class3.bsh \
tests/test-scripts/classinterf1.bsh \
tests/test-scripts/strings.bsh
mh_clean
install/$(PACKAGE)::
mh_installpoms -plibbsh-java
mh_installjar -plibbsh-java -l debian/pom.xml dist/$(PACKAGE)-$(VERSION).jar
install -m 755 debian/_bsh debian/bsh/usr/bin/bsh
install -m 755 debian/xbsh debian/bsh/usr/bin/
install/bsh-src:: binary-install/bsh-doc
mkdir -p debian/bsh-src/usr/src/bsh-src
tar --exclude debian --exclude classes --exclude dist --exclude api \
-zcf debian/bsh-src/usr/src/bsh-src/bsh.tar.gz *
binary-fixup/bsh-doc::
jh_depends -pbsh-doc
get-orig-source:
-uscan --download-version $(DEB_UPSTREAM_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/$(VERSION)/bsh-$(VERSION).pom
|