awlane | 022b2bf | 2024-08-28 19:22:46 -0500 | [diff] [blame] | 1 | # -*- Mode:bash; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | # |
| 3 | # Copyright (C) 2015-2024, The University of Memphis, |
| 4 | # Arizona Board of Regents, |
| 5 | # Regents of the University of California. |
| 6 | # |
| 7 | # This file is part of Mini-NDN. |
| 8 | # See AUTHORS.md for a complete list of Mini-NDN authors and contributors. |
| 9 | # |
| 10 | # Mini-NDN is free software: you can redistribute it and/or modify |
| 11 | # it under the terms of the GNU General Public License as published by |
| 12 | # the Free Software Foundation, either version 3 of the License, or |
| 13 | # (at your option) any later version. |
| 14 | # |
| 15 | # Mini-NDN is distributed in the hope that it will be useful, |
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | # GNU General Public License for more details. |
| 19 | # |
| 20 | # You should have received a copy of the GNU General Public License |
| 21 | # along with Mini-NDN, e.g., in COPYING.md file. |
| 22 | # If not, see <http://www.gnu.org/licenses/>. |
| 23 | |
| 24 | RELEASE_FILE="util/releases/$RELEASE_VERSION.sh" |
| 25 | |
| 26 | |
| 27 | if [[ $RELEASE_VERSION == current ]]; then |
| 28 | # THIS SHOULD BE UPDATED ON MAJOR RELEASES |
| 29 | RELEASE_FILE="util/releases/2024-08.sh" |
| 30 | fi |
| 31 | |
| 32 | if [[ ! -e $RELEASE_FILE ]]; then |
| 33 | cat <<EOT |
| 34 | No valid release version passed as argument. Please check |
| 35 | documentation and your command for typos. |
| 36 | |
| 37 | Valid versions: |
| 38 | - current |
| 39 | - 2024-08 |
| 40 | |
| 41 | Exiting... |
| 42 | EOT |
| 43 | exit 1 |
| 44 | fi |
| 45 | |
| 46 | source "$RELEASE_FILE" |
| 47 | |
| 48 | # This prevents issues when manually overriden versions |
| 49 | # are specified before the release by checking if these |
| 50 | # vars are already set. |
| 51 | |
| 52 | : ${CXX_VERSION:=${CXX_RELEASE}} |
| 53 | : ${NFD_VERSION:=${NFD_RELEASE}} |
| 54 | : ${PSYNC_VERSION:=${PSYNC_RELEASE}} |
| 55 | : ${NLSR_VERSION:=${NLSR_RELEASE}} |
| 56 | : ${TOOLS_VERSION:=${TOOLS_RELEASE}} |
| 57 | : ${TRAFFIC_VERSION:=${TRAFFIC_RELEASE}} |
| 58 | : ${INFOEDIT_VERSION:=${INFOEDIT_RELEASE}} |