mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-20 15:48:18 +01:00
26 lines
551 B
Bash
Executable File
26 lines
551 B
Bash
Executable File
#!/bin/bash
|
|
SCRIPT_ABS_FILENAME=`perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"`
|
|
SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
|
|
|
|
#echo `pwd`
|
|
|
|
me=`basename "$0"`
|
|
#echo me=$me
|
|
|
|
name="${me##*-}"
|
|
#echo name=$name
|
|
|
|
prefix=${me%-$name}
|
|
#echo prefix=$prefix
|
|
|
|
source "$SCRIPT_DIR"/"$prefix"-path "libtool" #we use libtool as a linker, so let's ignore $name
|
|
ps_dir="$SCRIPT_DIR"/../compilation_project_specific
|
|
|
|
|
|
cmdArgs=()
|
|
cmdArgs=( "$bin_path" $("$ps_dir"/"$prefix"-ldflags) "$@" )
|
|
|
|
echo "${cmdArgs[@]}"
|
|
|
|
exec "${cmdArgs[@]}"
|