#!/bin/bash # Perform custom create softlink script for compiler package # Copyright (c) Huawei Technologies Co., Ltd. 2022. All rights reserved. curpath=$(dirname $(readlink -f "$0")) SCENE_FILE="${curpath}""/../scene.info" common_func_path="${curpath}/common_func.inc" . "${common_func_path}" while true; do case "$1" in --install-path=*) install_path=$(echo "$1" | cut -d"=" -f2-) shift ;; --version-dir=*) version_dir=$(echo "$1" | cut -d"=" -f2) shift ;; --latest-dir=*) latest_dir=$(echo "$1" | cut -d"=" -f2) shift ;; -*) shift ;; *) break ;; esac done if [ -d "$install_path/$version_dir/opp" ]; then ln -srfn "$install_path/$version_dir/opp" "$install_path/$latest_dir/ops" fi