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
|
#!/usr/bin/make -f
# debian/rules file for bsh (uses cdbs)
export UPSTREAM_VERSION = $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-)
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME := /usr/share/ant
DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar servlet-2.3 bsf javacc
DEB_ANT_BUILD_TARGET := javadoc jarall test
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
install/bsh::
install -m 644 dist/bsh-$(UPSTREAM_VERSION).jar debian/bsh/usr/share/java/bsh-$(UPSTREAM_VERSION).jar
ln -s bsh-$(UPSTREAM_VERSION).jar debian/bsh/usr/share/java/bsh.jar
install -m 755 debian/_bsh debian/bsh/usr/bin/bsh
install -m 755 debian/xbsh debian/bsh/usr/bin/
install/bsh-gcj:: install/bsh
dh_nativejava -pbsh-gcj
|