blob: 1b1594add5606089a7ed61ea1f6a41b473b12977 [file] [log] [blame]
Junxiao Shi48ada892021-11-04 09:02:21 -06001#!/bin/bash
2# -*- Mode:bash; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
3#
4# Copyright (C) 2015-2021, The University of Memphis,
5# Arizona Board of Regents,
6# Regents of the University of California.
7#
8# This file is part of Mini-NDN.
9# See AUTHORS.md for a complete list of Mini-NDN authors and contributors.
10#
11# Mini-NDN is free software: you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation, either version 3 of the License, or
14# (at your option) any later version.
15#
16# Mini-NDN is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with Mini-NDN, e.g., in COPYING.md file.
23# If not, see <http://www.gnu.org/licenses/>.
24
25set -eo pipefail
26cd "$(dirname "${BASH_SOURCE[0]}")"
27
28PIP='python3 -m pip'
29
30for PIPPKG in sphinx sphinx_rtd_theme; do
31 if ! $PIP show $PIPPKG >/dev/null; then
32 sudo $PIP install $PIPPKG
33 fi
34done
35
36make clean html