2018-08-06 14:57:20 +00:00
|
|
|
#!/bin/bash
|
2018-08-28 12:57:04 +00:00
|
|
|
#^# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
#
|
|
|
|
# @software : pluie-yaml <https://git.pluie.org/pluie/lib-yaml>
|
2018-09-05 00:19:54 +00:00
|
|
|
# @version : 0.60
|
2018-08-28 12:57:04 +00:00
|
|
|
# @type : library
|
|
|
|
# @date : 2018
|
|
|
|
# @license : GPLv3.0 <http://www.gnu.org/licenses/>
|
|
|
|
# @author : a-Sansara <[dev]at[pluie]dot[org]>
|
|
|
|
# @copyright : pluie.org <http://www.pluie.org>
|
2018-08-18 23:18:55 +00:00
|
|
|
#
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
#
|
|
|
|
# This file is part of pluie-yaml.
|
2018-08-28 12:57:04 +00:00
|
|
|
#
|
2018-08-18 23:18:55 +00:00
|
|
|
# pluie-yaml is free software (free as in speech) : you can redistribute it
|
|
|
|
# and/or modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the License,
|
|
|
|
# or (at your option) any later version.
|
2018-08-28 12:57:04 +00:00
|
|
|
#
|
|
|
|
# pluie-yaml is distributed in the hope that it will be useful, but WITHOUT
|
2018-08-18 23:18:55 +00:00
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
# more details.
|
2018-08-28 12:57:04 +00:00
|
|
|
#
|
2018-08-18 23:18:55 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2018-08-29 14:37:11 +00:00
|
|
|
# along with pluie-yaml. If not, see <http://www.gnu.org/licenses/>.
|
2018-08-18 23:18:55 +00:00
|
|
|
#
|
2018-08-28 12:57:04 +00:00
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #^#
|
|
|
|
|
2018-08-18 23:18:55 +00:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2018-09-05 00:19:54 +00:00
|
|
|
lib="pluie-yaml-0.6"
|
2018-08-18 23:18:55 +00:00
|
|
|
cd $DIR
|
2018-09-05 00:19:54 +00:00
|
|
|
valadoc --package-name=$lib --verbose --force --deps -o ./doc --pkg gee-0.8 --pkg gio-2.0 --pkg gobject-2.0 --pkg gmodule-2.0 --pkg glib-2.0 --pkg pluie-echo-0.2 ./src/vala/Pluie/*.vala ./build/install.vala
|
2018-08-28 12:57:04 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
rm doc/*.png
|
|
|
|
cp resources/doc-scripts.js ./doc/scripts.js
|
|
|
|
cp resources/doc-style.css ./doc/style.css
|
2018-09-05 00:05:54 +00:00
|
|
|
if [ -f "./docfix" ]; then
|
2018-09-05 00:19:54 +00:00
|
|
|
./docfix
|
2018-09-05 00:05:54 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
rm $lib.tar.gz
|
|
|
|
tar -czvf $lib.tar.gz doc/
|
|
|
|
scp $lib.tar.gz pluie@pluie.org:/home/pluie/
|
2018-09-05 00:52:57 +00:00
|
|
|
ssh pluie@pluie.org "./updatedoc.sh $lib"
|
2018-09-05 00:05:54 +00:00
|
|
|
fi
|
|
|
|
fi
|
2018-08-28 12:57:04 +00:00
|
|
|
fi
|