Description: Replace silk-weaver.jar by xml_grep from the xml-twig-tools package.
 No sources are included for silk-weaver.jar, it is therefore deleted from the
 Debian source package.
Author: Charles Plessy <plessy@debian.org>
Forwarded: why not ?
diff --git a/Makefile b/Makefile
index 7ad5cc6..2c65c55 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ NATIVE_DIR:=src/main/resources/org/xerial/snappy/native/$(OS_NAME)/$(OS_ARCH)
 NATIVE_TARGET_DIR:=$(TARGET)/classes/org/xerial/snappy/native/$(OS_NAME)/$(OS_ARCH)
 NATIVE_DLL:=$(NATIVE_DIR)/$(LIBNAME)
 
-snappy-jar-version:=snappy-java-$(shell $(JAVA) -jar lib/silk-weaver.jar find 'project(artifactId, version)' pom.xml | grep snappy-java | awk '{ print $$2; }')
+snappy-jar-version:=snappy-java-$(shell xml_grep --text_only "/project/version" pom.xml)
 
 native: $(SNAPPY_UNPACKED) $(NATIVE_DLL) 
 snappy: native $(TARGET)/$(snappy-jar-version).jar
