subrepo: subdir: "platforms/platform-test-f4-ll" merged: "bc41134" upstream: origin: "git@github.com:compihu/platform-test-f4-ll.git" branch: "master" commit: "bc41134" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "87ee373"
20 lines
553 B
Bash
Executable file
20 lines
553 B
Bash
Executable file
#!/bin/bash -x
|
|
FirstLetter=${0:0:1}
|
|
if [[ $FirstLetter == "/" ]] ; then
|
|
CPPUTEST_HOME=${0%/scripts/*}
|
|
else
|
|
file=$(pwd)/${0}
|
|
CPPUTEST_HOME="${file%/scripts/*}"
|
|
fi
|
|
|
|
EXE_DIR=${EXE_DIR:-/usr/local/bin}
|
|
test -f ${EXE_DIR} || mkdir -p ${EXE_DIR}
|
|
|
|
NEW_SCRIPTS="NewCIoDriver NewClass NewInterface NewCModule NewCmiModule NewProject NewLibrary NewPackageDirs NewCInterface NewCFunction NewHelp"
|
|
|
|
|
|
for file in $NEW_SCRIPTS ; do
|
|
rm -f ${EXE_DIR}/${file}
|
|
ln -s ${CPPUTEST_HOME}/scripts/${file}.sh ${EXE_DIR}/${file}
|
|
chmod a+x ${EXE_DIR}/${file}
|
|
done
|