Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirusCheckPlugin4Rosetta
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
VirusCheckPlugin4Rosetta
Commits
e86babee
Commit
e86babee
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- updated sdk
parent
762403a3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+21
-15
21 additions, 15 deletions
Makefile
with
21 additions
and
15 deletions
Makefile
+
21
−
15
View file @
e86babee
...
@@ -4,22 +4,24 @@
...
@@ -4,22 +4,24 @@
# von ExLibris an Rosetta übergibt.
# von ExLibris an Rosetta übergibt.
# Pfad zu Java
# Pfad zu Java
JAVAPATH
=
$(
wildcard /usr/lib/jvm/java-11-openjdk-
*
/bin/
)
JAVAPATH
=
$(
wildcard /usr/lib/jvm/java-1.17.0-openjdk-
*
/bin/
)
JAVARELEASE
=
17
# Verwendete Rosetta-Version
# Verwendete Rosetta-Version
ROSETTAVERSION
=
6
.3.0
ROSETTAVERSION
:=
7
.3.0
# Pfad zum Rosetta-SDK
# Pfad zum Rosetta-SDK
ROSETTASDK
=
/exlibris/dps/d4_1/system.dir/dps-sdk-
${
ROSETTAVERSION
}
/lib/
ROSETTASDK
:
=
/exlibris/dps/d4_1/system.dir/dps-sdk-
${
ROSETTAVERSION
}
/lib/
# Pfad zum Rosetta-SDK, Deposit-Module
# Pfad zum Rosetta-SDK, Deposit-Module
ROSETTASDKDEPOSIT
=
${
ROSETTASDK
}
/../dps-sdk-projects/dps-sdk-deposit/lib
ROSETTASDKDEPOSIT
:=
${
ROSETTASDK
}
/../dps-sdk-projects/dps-sdk-deposit/lib
ROSETTASDKPLUGINS
=
${
ROSETTASDK
}
/../../bundled_plugins/
ROSETTASDKPLUGINS
:=
${
ROSETTASDK
}
/../../bundled_plugins/
ROSETTASDKJARS
=
$(
shell find
${
ROSETTASDKDEPOSIT
}
-name
"*.jar"
)
# classpath
# classpath
JUNITCLASSPATH
=
/usr/share/java/junit4.jar
JUNITCLASSPATH
=
/usr/share/java/junit4.jar
#SOURCESCLASSPATH=org/slub/rosetta/dps/repository/plugin/storage/nfs
#SOURCESCLASSPATH=org/slub/rosetta/dps/repository/plugin/storage/nfs
CLASSPATH
=
./java:
${
ROSETTASDKDEPOSIT
}
/../src/:
${
ROSETTASDKDEPOSIT
}
/xmlbeans-2.3.0.jar:
${
ROSETTASDKDEPOSIT
}
/dps-sdk-
${
ROSETTAVERSION
}
.jar:
${
ROSETTASDKDEPOSIT
}
/log4j-1.2.14.jar:
${
ROSETTASDKPLUGINS
}
/NFSStoragePlugin.jar
CLASSPATH
:
=
./java:
${
ROSETTASDKDEPOSIT
}
/../src/:
${
ROSETTASDKDEPOSIT
}
/xmlbeans-2.3.0.jar:
${
ROSETTASDKDEPOSIT
}
/dps-sdk-
${
ROSETTAVERSION
}
.jar:
${
ROSETTASDKDEPOSIT
}
/log4j-1.2.14.jar:
${
ROSETTASDKPLUGINS
}
/NFSStoragePlugin.jar
# sources
# sources
...
@@ -28,18 +30,19 @@ CLASSPATH=./java:${ROSETTASDKDEPOSIT}/../src/:${ROSETTASDKDEPOSIT}/xmlbeans-2.3.
...
@@ -28,18 +30,19 @@ CLASSPATH=./java:${ROSETTASDKDEPOSIT}/../src/:${ROSETTASDKDEPOSIT}/xmlbeans-2.3.
SOURCES
=
java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java
SOURCES
=
java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java
OBJS
=
$(
SOURCES:.java
=
.class
)
OBJS
=
$(
SOURCES:.java
=
.class
)
JAR
=
SLUBVirusCheckPlugin.jar
JAR
=
SLUBVirusCheckPlugin.jar
BUILD
:=
build/
all
:
$(JAR)
all
:
$(BUILD)
$(JAR)
help
:
help
:
@
echo
"erzeugt
${
JAR
}
für Rosetta von Exlibris"
@
echo
"erzeugt
viruscheck plugin
für Rosetta von Exlibris"
@
echo
""
@
echo
""
@
echo
"Das Argument 'clean' löscht temporäre Dateien, 'help' gibt diese Hilfe aus und"
@
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."
@
echo
"aufruft."
jarclean
:
jarclean
:
@
rm
-Rf
build
@
rm
-Rf
$(
BUILD
)
test
:
$(OBJS)
test
:
$(OBJS)
java
-cp
${
CLASSPATH
}
:
$(
JUNITCLASSPATH
)
org.junit.runner.JUnitCore
java
-cp
${
CLASSPATH
}
:
$(
JUNITCLASSPATH
)
org.junit.runner.JUnitCore
...
@@ -53,15 +56,18 @@ distclean: clean
...
@@ -53,15 +56,18 @@ distclean: clean
find ./
-name
"*~"
-exec
rm
-f
\{\}
\;
find ./
-name
"*~"
-exec
rm
-f
\{\}
\;
@
rm
-Rf
null
@
rm
-Rf
null
$(BUILD)
:
@
mkdir
$@
;
@
mkdir
$@
/lib
$(JAR)
:
$(OBJS)
$(JAR)
:
$(OBJS)
@
mkdir
build
;
@
cp
-r
PLUGIN-INF/
$(
BUILD
)
@
cp
-r
PLUGIN-INF/ build/
@
cp
-r
META-INF/
$(
BUILD
)
@
cp
-r
META-INF/ build/
@
cd
java
;
find ./
-name
"*.class"
-print
-exec
cp
--parents
-r
\{\}
$(
PWD
)
/build
\;
;
cd
..
@
cd
java
;
find ./
-name
"*.class"
-print
-exec
cp
--parents
-r
\{\}
$(
PWD
)
/build
\;
;
cd
..
@
cd
build
;
${
JAVAPATH
}
/jar cfvM ../
$@
./
*
;
cd
..
@
cd
$(
BUILD
)
;
${
JAVAPATH
}
/jar cfvM ../
$@
./
*
;
cd
..
%.class
:
%.java
%.class
:
%.java
${
JAVAPATH
}
/javac
-classpath
${
CLASSPATH
}
:
${
JUNITCLASSPATH
}
-Xlint
:all
$<
${
JAVAPATH
}
/javac
--release
${
JAVARELEASE
}
-g
-classpath
${
CLASSPATH
}
:
${
JUNITCLASSPATH
}
-Xlint
:all
$<
doc
:
$(SOURCES)
doc
:
$(SOURCES)
javadoc
-d
doc/
$^
javadoc
-d
doc/
$^
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment