Browse Source

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 <scott.little@windriver.com>
changes/98/749998/6
Scott Little 2 years ago
parent
commit
420a989cf5
  1. 3
      Dockerfile
  2. 21
      toCOPY/generate-cgcs-centos-repo.sh

3
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 && \

21
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 "$@"
Loading…
Cancel
Save