commit 420a989cf52f2ccc8d44843012ab4e56ae9381b9 Author: Scott Little Date: Fri Sep 4 12:38:54 2020 -0400 Add backward compatability wrapper for generate-cgcs-centos-repo.sh generate-cgcs-centos-repo.sh was renamed generate-centos-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: 36912 Depends-On: https://review.opendev.org/#/c/687403 Change-Id: I69714d46ab20b52828f31625cc4e7955fbd10387 Signed-off-by: Scott Little diff --git a/Dockerfile b/Dockerfile index 72b6dc0..2d27589 100644 --- a/Dockerfile +++ b/Dockerfile @@ -132,9 +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 +# Thes are included for backward compatibility, and # should be removed after a reasonable time. COPY toCOPY/generate-cgcs-tis-repo /usr/local/bin +COPY toCOPY/generate-cgcs-centos-repo.sh /usr/local/bin # cpan modules, installing with cpanminus to avoid stupid questions since cpan is whack RUN cpanm --notest Fatal && \ diff --git a/toCOPY/generate-cgcs-centos-repo.sh b/toCOPY/generate-cgcs-centos-repo.sh new file mode 100755 index 0000000..7d3a554 --- /dev/null +++ b/toCOPY/generate-cgcs-centos-repo.sh @@ -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_CENTOS_REPO_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )" + +echo "" 1>&2 +echo "generate-cgcs-centos-repo.sh is deprecated. Please use generate-centos-repo.sh instead." 1>&2 +echo "" 1>&2 +echo "Forwarding to generate-centos-repo.sh in 5 seconds" 1>&2 +echo "" 1>&2 +sleep 5 + +${GENERATE_CGCS_CENTOS_REPO_DIR}/generate-centos-repo.sh "$@"