#!/bin/sh

echo "Installation of AdaDoc"
echo "**********************"

#licence
echo "AdaDoc is distribued under GPL Licence"
echo "GPL Licence is in : /usr/share/doc/adadoc/gpl-en.txt"

#Make directories
echo "Creating directory /usr/share/doc/adadoc"
mkdir /usr/share/doc/adadoc
mkdir /usr/share/doc/adadoc/example
mkdir /usr/share/doc/adadoc/dev

#Copie des fichiers
echo "Copy files..."
echo "Copy adadoc to /usr/bin/"
cp adadoc /usr/bin/

echo "Copy help files and examples"
mv  XSDdoc /usr/share/doc/adadoc
mv doctech /usr/share/doc/adadoc
cp  adadoc_tags.cfg gpl-en.txt UserGuide.pdf BUGS.txt FEATURE.txt /usr/share/doc/adadoc/
cp module-xy.ads module-xy.xml module-xy.html module-xy.tex style.css /usr/share/doc/adadoc/example/
cp HowToWriteModule.pdf SchemaDiagram.png AdaDocV2.xsd  /usr/share/doc/adadoc/dev/
echo "Delete temp files"
rm adadoc install adadoc_tags.cfg BUGS.txt FEATURE.txt gpl-en.txt UserGuide.pdf module-xy.ads module-xy.xml module-xy.html module-xy.tex HowToWriteModule.pdf SchemaDiagram.png AdaDocV2.xsd
echo "Done!"
