single script to enable
This commit is contained in:
5
README
5
README
@@ -6,8 +6,11 @@
|
||||
|
||||
cd $( dirname $0 )/bin
|
||||
|
||||
(
|
||||
(
|
||||
echo Add the tools to PATH by sourcing the "rc" in this folder
|
||||
|
||||
for e in *; do
|
||||
test -x $e || continue
|
||||
echo -e "\n===== $e =====\n"
|
||||
./$e -h
|
||||
done
|
||||
|
||||
12
rc
Normal file
12
rc
Normal file
@@ -0,0 +1,12 @@
|
||||
# source me to enable tools
|
||||
|
||||
TOOLSPATH=$( readlink -f $( dirname "$BASH_SOURCE" ) )
|
||||
|
||||
PATH=$PATH:"$TOOLSPATH"/bin
|
||||
|
||||
# remove duplicate path
|
||||
PATH=$( echo $PATH | awk -F: '{for (i=1;i<=NF;i++) { if ( !x[$i]++ ) printf("%s:",$i); }}' | sed 's,:\+$,,g' )
|
||||
export PATH
|
||||
|
||||
. "$TOOLSPATH"/qcd_function
|
||||
|
||||
Reference in New Issue
Block a user