Skip to content
Snippets Groups Projects
Commit 856bfc8e authored by Jörg Sachse's avatar Jörg Sachse
Browse files

bumped plugin version, renamed plugin, fixed paths in plugin code

parent 125ead2a
Branches
No related tags found
No related merge requests found
<!-- Documentation: https://developers.exlibrisgroup.com/rosetta/integrations/plugins/ -->
<pl:metadata-config xmlns:pl="http://www.exlibrisgroup.com/Plugins/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<pl:pluginTypeName>MigrationToolPlugin</pl:pluginTypeName>
<pl:deployName>Migration DUMMY Plugin</pl:deployName>
<pl:deployName>Migration Plugin DUMMY</pl:deployName>
<pl:description>Dummy for a MigrationPlugin that just copies original file to new file</pl:description>
<pl:module>Preservation</pl:module>
<pl:version>0.2</pl:version>
<pl:version>0.3</pl:version>
<pl:materialType>DIGITAL</pl:materialType>
<pl:generalType>TASK</pl:generalType>
<pl:implType>script</pl:implType>
......
......@@ -3,18 +3,20 @@
#########
# Documentation: https://developers.exlibrisgroup.com/rosetta/integrations/plugins/migrationtool/
# shamelessly copied and slightly modified from: https://developers.exlibrisgroup.com/blog/Creating-a-Migration-Tool-Split-Plug-in/
# with modifications as suggested by SupportCase 00712430
# by: Jörg Sachse, Joerg.Sachse@slub-dresden.de
# at: 2019-07-29
# last shellcheck run: 2019-07-29 13:06
# created at: 2019-07-29
# last shellcheck run: 2019-10-17 15:10
#########
# wrap all but the last two parameters
for (( i=1; i<$#-1; i=i+1 )); do
ARGS="$ARGS ${!i}"
ARGS="$ARGS ${!i}"
done
INPUT_FILE="${!i}"
i=$(( i+1 ))
INPUT_PATH="${!i}"
INPUT_FILE="$( basename ${INPUT_PATH} )"
(( i++ ))
OUTPUT_DIR="${!i}"
if [[ ! -e "${OUTPUT_DIR}" ]]; then
......@@ -22,6 +24,6 @@ if [[ ! -e "${OUTPUT_DIR}" ]]; then
fi
# cp "$INPUT_FILE" "$ARGS" "$OUTPUT_DIR/$INPUT_FILE"
cp "$INPUT_FILE" "$OUTPUT_DIR/$INPUT_FILE"
cp "$INPUT_PATH" "$OUTPUT_DIR/$INPUT_FILE"
exit $?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment