Add backward compatability wrapper for generate-cgcs-tis-repo

generate-cgcs-tis-repo was renamed generate-local-repo.sh
in a prior update.  This commit restores the old command
as a wrapper for the renamed command.  This will provide
backward compatability for a time.

Story: 2006387
Task: 36910
Depends-On: https://review.opendev.org/#/c/687401
Change-Id: Ibe7c70b1b3f1081e3c7c8a1ca775927322653a5b
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
Scott Little 2020-09-04 12:35:47 -04:00
parent 4e73613a36
commit 9a188af410
2 changed files with 25 additions and 0 deletions

View File

@ -132,6 +132,10 @@ COPY toCOPY/lst_utils.sh /usr/local/bin
COPY toCOPY/.inputrc /home/$MYUNAME/
COPY toCOPY/builder-constraints.txt /home/$MYUNAME/
# This is included for backward compatibility, and
# should be removed after a reasonable time.
COPY toCOPY/generate-cgcs-tis-repo /usr/local/bin
# cpan modules, installing with cpanminus to avoid stupid questions since cpan is whack
RUN cpanm --notest Fatal && \
cpanm --notest XML::SAX && \

21
toCOPY/generate-cgcs-tis-repo Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2020 Wind River Systems, Inc.
#
# This file included for backward compatibility, and
# should be removed after a reasonable time.
GENERATE_CGCS_TIS_REPO_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )"
echo "" 1>&2
echo "generate-cgcs-tis-repo is deprecated. Please use generate-local-repo.sh instead." 1>&2
echo "" 1>&2
echo "Forwarding to generate-local-repo.sh in 5 seconds" 1>&2
echo "" 1>&2
sleep 5
${GENERATE_CGCS_TIS_REPO_DIR}/generate-local-repo.sh "$@"