Commit 8df0fbd8 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

suppression dépendance xmllint ! #123

parent d9026339
......@@ -59,8 +59,6 @@ echo "---------------------------"
echo " MaX - Utilities - "$MAX_VERSION
echo "---------------------------"
dependency_test xmllint
#checks and set basex bin
a=$(command -v basexclient)
......@@ -277,8 +275,6 @@ install_demo(){
then
echo 'Process failed'
exit 1
else
format_configuration_file
fi
echo "INFO: The edition "$edition_name" was successfully deployed."
......@@ -344,14 +340,6 @@ include_project_config(){
$BASEX_BIN -u -bprojectId=$1 $DIRECTORY"/xq/include_project_config.xq" # -u => save modified file on disk
}
format_configuration_file(){
FILE=$DIRECTORY"/../configuration/configuration.xml"
mv $FILE $FILE".bak" || exit 1
xmllint --format $FILE".bak" > $FILE
rm $FILE".bak"
}
new_edition_build(){
if [ ! -d $DIRECTORY/../editions ]
then
......@@ -361,7 +349,6 @@ new_edition_build(){
mkdir $DIRECTORY/../editions/$1
$BASEX_BIN -bprojectId=$1 -bdbPath=$2 -benvType=$3 -bmaxPath=$DIRECTORY/.. $DIRECTORY"/xq/create_project_config.xq"
include_project_config $1
format_configuration_file
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment