summaryrefslogtreecommitdiff
path: root/doxygen/builder/rtems-doxygen-publish
blob: e4c4b9a46533dceff0b198253f1ac0b567e761ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/sh
#
# RTEMS Documentation Project
#
# Copyright 2017 Chris Johns <chrisj@rtems.org>
# All rights reserved
#
# Public domain
#

#
# Exit on error.
#
set -e

#
# Executables
#
cp=/bin/cp
rm=/bin/rm

#
# We run where the script is located.
#
cd $(dirname $0)

#
# Top directory
#
top=$PWD

#
# The current directory.
#
current=/data/www/docs.rtems.org/doxygen/branches

#
# The new docs
#
new=${top}/latest/new

#
# If there is a new directory we have something to publsh.
#
if [ -d ${new} ]; then
 ${rm} -rf ${current}.tags ${current}/*
 ${cp} -r ${new}/.tags ${current}/.
 ${cp} -r ${new}/. ${current}/.
 ${rm} -rf ${new}
fi

exit 0