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

- added build script

parent b67b0472
No related branches found
No related tags found
No related merge requests found
#!/bin/dash -
#===============================================================================
#
# FILE: build_all.sh
#
# USAGE: ./build_all.sh
#
# DESCRIPTION: combines all policies
#
# OPTIONS: ---
# REQUIREMENTS: xsltproc
# BUGS: ---
# NOTES: ---
# AUTHOR: Andreas Romeyke,
# ORGANIZATION: SLUB
# CREATED: 08.09.2020 09:19
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
BUILD=./build
if [ -e ${BUILD} ];
then
echo BUILD-dir ${BUILD} already exist, Aborting...
else
TEMP_FILE=$(mktemp)
COMBINED_FILE=${BUILD}/SLUB_mediaconch_policy_all.xml
mkdir $BUILD
echo '<?xml version="1.0" encoding="UTF-8"?>' > "${TEMP_FILE}"
echo '<policy />' >> "${TEMP_FILE}"
xsltproc SLUB_mediaconch_policy_all.xsl "${TEMP_FILE}" > "${COMBINED_FILE}"
rm -f "${TEMP_FILE}"
ls -lh "${COMBINED_FILE}"
echo "finished."
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment