build system: make the git scripts more user friendly
Git can tell you what the root dir of the repo is, so the scripts don't need to force the user to cd there first. Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
This commit is contained in:
parent
3f95264600
commit
0e967d353d
3 changed files with 3 additions and 15 deletions
|
|
@ -3,11 +3,7 @@
|
|||
if [ ! -z "$EMC2_HOME" ]; then
|
||||
source $EMC2_HOME/scripts/githelper.sh
|
||||
else
|
||||
if [ ! -d debian -o ! -d src ]; then
|
||||
echo "this script must be run from the root of the source tree (the directory with debian and src in it)"
|
||||
exit 1
|
||||
fi
|
||||
source scripts/githelper.sh
|
||||
source $(git rev-parse --show-toplevel)/scripts/githelper.sh
|
||||
fi
|
||||
|
||||
githelper $1
|
||||
|
|
|
|||
|
|
@ -3,11 +3,7 @@
|
|||
if [ ! -z "$EMC2_HOME" ]; then
|
||||
source $EMC2_HOME/scripts/githelper.sh
|
||||
else
|
||||
if [ ! -d debian -o ! -d src ]; then
|
||||
echo "this script must be run from the root of the source tree (the directory with debian and src in it)"
|
||||
exit 1
|
||||
fi
|
||||
source scripts/githelper.sh
|
||||
source $(git rev-parse --show-toplevel)/scripts/githelper.sh
|
||||
fi
|
||||
|
||||
githelper $1
|
||||
|
|
|
|||
|
|
@ -11,11 +11,7 @@
|
|||
if [ ! -z "$EMC2_HOME" ]; then
|
||||
source $EMC2_HOME/scripts/githelper.sh
|
||||
else
|
||||
if [ ! -d debian -o ! -d src ]; then
|
||||
echo "this script must be run from the root of the source tree (the directory with debian and src in it)"
|
||||
exit 1
|
||||
fi
|
||||
source scripts/githelper.sh
|
||||
source $(git rev-parse --show-toplevel)/scripts/githelper.sh
|
||||
fi
|
||||
|
||||
githelper $1
|
||||
|
|
|
|||
Loading…
Reference in a new issue