git subrepo clone git@github.com:compihu/platform-test-f4-ll.git platforms/platform-test-f4-ll
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"
This commit is contained in:
parent
46ce55c6a0
commit
95af4ce0d8
460 changed files with 84105 additions and 0 deletions
20
platforms/platform-test-f4-ll/cpputest/scripts/InstallScripts.sh
Executable file
20
platforms/platform-test-f4-ll/cpputest/scripts/InstallScripts.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue