forked from Isabelle_DOF/Isabelle_DOF
Bug fix: directory creation.
This commit is contained in:
parent
313a6ea930
commit
5e3bdbd340
|
@ -91,12 +91,12 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$DOC" = true ]; then
|
if [ "$DOC" = true ]; then
|
||||||
$ISABELLE_TOOL mkroot -d -n "$NAME"
|
$ISABELLE_TOOL mkroot -d -n "$NAME" "$DIR"
|
||||||
echo " \"build\"" >> ROOT
|
echo " \"build\"" >> "$DIR"/ROOT
|
||||||
TITLE=$(echo "$NAME" | tr _ - | tr -d '\\')
|
TITLE=$(echo "$NAME" | tr _ - | tr -d '\\')
|
||||||
AUTHOR=$(echo "By $USER" | tr _ - | tr -d '\\')
|
AUTHOR=$(echo "By $USER" | tr _ - | tr -d '\\')
|
||||||
cp "$ISABELLE_HOME_USER/DOF/document-template"/* document/
|
cp "$ISABELLE_HOME_USER/DOF/document-template"/* "$DIR"/document/
|
||||||
sed -i -e "s/<AUTHOR>/$AUTHOR/" -e "s/<TITLE>/$TITLE/" document/root.tex
|
sed -i -e "s/<AUTHOR>/$AUTHOR/" -e "s/<TITLE>/$TITLE/" "$DIR"/document/root.tex
|
||||||
else
|
else
|
||||||
$ISABELLE_TOOL mkroot -n "$NAME"
|
$ISABELLE_TOOL mkroot -n "$NAME"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue