mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
buildDocExports : fix bugs
This commit is contained in:
parent
d67235123c
commit
c273f59bd1
2 changed files with 13 additions and 10 deletions
|
@ -38,7 +38,7 @@ then
|
|||
cp -f $DOC_DIR/exports/pdf/LdapSaisie.pdf $EXPORT_DOC_DIR/LdapSaisie.pdf
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo Error
|
||||
echo -e "\n-> Error"
|
||||
ERROR=1
|
||||
else
|
||||
echo Ok
|
||||
|
@ -100,7 +100,7 @@ then
|
|||
mkdir -p $TMP_DIR/$DOCBOOK/$i
|
||||
done
|
||||
|
||||
for i in `find -type f|grep -v '(Makefile|^./export)'`
|
||||
for i in `find -type f|egrep -v '(Makefile|^./export)'`
|
||||
do
|
||||
cp $i $TMP_DIR/$DOCBOOK/$i
|
||||
done
|
||||
|
@ -119,17 +119,18 @@ do
|
|||
then
|
||||
echo Ok
|
||||
else
|
||||
echo Erreur
|
||||
echo -e "\n-> Error"
|
||||
ERROR=1
|
||||
fi
|
||||
|
||||
echo -en "\t\t+ Web dir : "
|
||||
[ ! -d "$EXPORT_DOC_DIR/$i" ] && echo "you must create export $i directory manualy before run this script. (path : $EXPORT_DOC_DIR/$i)" && continue
|
||||
rm -fr $EXPORT_DOC_DIR/$i/* && cp -fr $i/* $EXPORT_DOC_DIR/$i/ && rm -fr $i
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo Ok
|
||||
else
|
||||
echo Erreur
|
||||
echo -e "\n-> Error"
|
||||
ERROR=1
|
||||
fi
|
||||
done
|
||||
|
@ -144,3 +145,5 @@ then
|
|||
fi
|
||||
|
||||
rm -fr $TMP_DIR
|
||||
|
||||
exit $ERROR
|
||||
|
|
|
@ -33,10 +33,10 @@ ONLINE=online
|
|||
DOCBOOK=docbook
|
||||
|
||||
# The CSS file to use in export
|
||||
CSS=$DOC_DIR/styles/LS.css
|
||||
CSS=$ROOT_DIR/doc/styles/LS.css
|
||||
|
||||
# The image doc directory
|
||||
IMAGES=$DOC_DIR/images
|
||||
IMAGES=$ROOT_DIR/doc/images
|
||||
|
||||
# The name of last update file
|
||||
LAST_UPDATE_FILE=$EXPORT_DIR/last_update.txt
|
||||
|
|
Loading…
Reference in a new issue