Skip to content
Snippets Groups Projects
Commit 7d802028 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- removed unused targets

parent 0a99f1a2
Branches
No related tags found
No related merge requests found
#!/bin/bash
# Andreas Romeyke, SLUB Dresden
# Pfad zu Java 11
# Pfad zu Java
JAVAPATH=/usr/lib/jvm/java-1.17.0-openjdk-*/bin/
JAVARELEASE=17
# Verwendete Rosetta-Version
......@@ -14,10 +14,6 @@ ROSETTASDKDEPOSIT=${ROSETTASDK}/../dps-sdk-projects/dps-sdk-deposit/lib
ROSETTASDKPLUGINS=${ROSETTASDK}/../../bundled_plugins/
#XALAN_JAR=$(shell find /usr/share/java/ -name "xalan2.jar" )
#XERCES_JAR=$(shell find /usr/share/java/ -name "xercesImpl.jar")
#XML_JAR=$(shell find /usr/share/java/ -name "xml-apis.jar")
# classpath
JUNITCLASSPATH=/usr/share/java/junit4.jar
#SOURCESCLASSPATH=org/slub/rosetta/dps/repository/plugin/storage/nfs
......@@ -36,7 +32,7 @@ help:
@echo "erzeugt Plugin für Rosetta von Exlibris"
@echo ""
@echo "Das Argument 'clean' löscht temporäre Dateien, 'help' gibt diese Hilfe aus und"
@echo "'compile' erzeugt ein JAR-File und ein Bash-Script welches das Java-Programm"
@echo "'all' erzeugt ein JAR-File und ein Bash-Script welches das Java-Programm"
@echo "aufruft."
jarclean:
......@@ -62,25 +58,6 @@ $(JAR): $(OBJS)
@cp -r PLUGIN-INF/ $(BUILD)
@cp -r META-INF/ $(BUILD)
@cd java; find ./ -name "*.class" -print -exec cp --parents -r \{\} $(PWD)/$(BUILD) \; ; cd ..
# @cd resources; find ./ -type f -print -exec cp --parents -r \{\} $(PWD)/build \; ; cd ..
cp -a resources/ $(PWD)/$(BUILD)
ifdef XALAN_JAR
echo "XALAN_JAR: unzip '$(XALAN_JAR)'"
# unzip $(XALAN_JAR) '*.class' -d $(BUILD);
# unzip $(XALAN_JAR) 'META-INF/services/*' -d $(BUILD)
cp --dereference $(XALAN_JAR) $(PWD)/$(BUILD)lib/
endif
ifdef XERCES_JAR
echo "XERCES_JAR: unzip '$(XERCES_JAR)'"
# unzip $(XERCES_JAR) '*.class' -d $(BUILD);
cp --dereference $(XERCES_JAR) $(PWD)/$(BUILD)lib/
endif
ifdef XML_JAR
echo "XML_JAR: unzip '$(XML_JAR)'"
# unzip $(XML_JAR) '*.class' -d $(BUILD);
cp --dereference $(XML_JAR) $(PWD)/$(BUILD)lib/
endif
@cd $(BUILD); ${JAVAPATH}/jar cfvM ../$@ ./* ; cd ..
%.class: %.java
......@@ -96,4 +73,3 @@ check_prerequisites:
@if [ -e $(ROSETTASDK) ]; then echo "fine :)"; else echo " not found! :("; fi
.PHONY: help clean distclean jarclean test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment