summaryrefslogtreecommitdiff
path: root/docs/builder/rtems-docs-upload
blob: 7c217b3448b47809e87632f5833f0aa855e2a25b (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
#! /bin/sh
#
# RTEMS Documentation Project
#
# Copyright 2017 Chris Johns <chrisj@rtems.org>
# All rights reserved
#
# Public domain
#

#
# Exit on error.
#
set -e

#
# Executables
#
mkdir=/bin/mkdir

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

#
# If no update directory create it.
#
if [ ! -d latest ]; then
 ${mkdir} latest
fi

cd latest
 ../rtems-docs-build-branches
 if [ -f rtems-docs-latest.tar.xz ]; then
  mv rtems-docs-latest.tar.xz rtems-docs-latest-tags \
     /data/ftp/pub/rtems/people/chrisj/docs.rtems.org/latest/
 fi
 cd ..

exit 0