-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #962 from openpreserve/dev/1.33
DEV: JHOVE v1.33.0-SNAPSHOT
- Loading branch information
Showing
19 changed files
with
81 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/usr/bin/env bash | ||
|
||
testRoot="test-root" | ||
paramCandidateVersion="" | ||
paramBaselineVersion="" | ||
baselineRoot="${testRoot}/baselines" | ||
candidateRoot="${testRoot}/candidates" | ||
targetRoot="${testRoot}/targets" | ||
# Check the passed params to avoid disapointment | ||
checkParams () { | ||
OPTIND=1 # Reset in case getopts previously used | ||
|
||
while getopts "h?b:c:" opt; do # Grab the options | ||
case "$opt" in | ||
h|\?) | ||
showHelp | ||
exit 0 | ||
;; | ||
b) paramBaselineVersion=$OPTARG | ||
;; | ||
c) paramCandidateVersion=$OPTARG | ||
;; | ||
esac | ||
done | ||
|
||
if [ -z "$paramBaselineVersion" ] || [ -z "$paramCandidateVersion" ] | ||
then | ||
showHelp | ||
exit 0 | ||
fi | ||
|
||
baselineRoot="${baselineRoot}/${paramBaselineVersion}" | ||
candidateRoot="${candidateRoot}/${paramCandidateVersion}" | ||
targetRoot="${targetRoot}/${paramCandidateVersion}" | ||
} | ||
|
||
# Show usage message | ||
showHelp() { | ||
echo "usage: create-target [-b <baselineVersion>] [-c <candidateVersion>] [-h|?]" | ||
echo "" | ||
echo " baselineVersion : The version number id for the baseline data." | ||
echo " candidateVersion : The version number id for the candidate data." | ||
echo "" | ||
echo " -h|? : This message." | ||
} | ||
|
||
# Execution starts here | ||
checkParams "$@"; | ||
if [[ -d "${targetRoot}" ]]; then | ||
echo " - removing existing baseline at ${targetRoot}." | ||
rm -rf "${targetRoot}" | ||
fi | ||
|
||
echo "TEST BASELINE: Creating baseline" | ||
# Simply copy baseline for now we're not making any changes | ||
echo " - copying ${baselineRoot} baseline to ${targetRoot}" | ||
cp -R "${baselineRoot}" "${targetRoot}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters