debian swirl logo

Back to the packages list bsh

#!/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

Builds:

bsh-doc
documentation for bsh
bsh
java scripting environment (beanshell) version 2
bsh-src
java scripting environment (beanshell) version 2 (source code)
libbsh-java
java scripting environment (beanshell) version 2 (library)