Ensure all helper scripts pushd/popd
Make sure all of these move to the root of the repository first, then return to where they were afterwards, using pushd/popd. This allows them to be executed from anywhere in the repo.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
set -o xtrace
|
||||
exec 3>&1
|
||||
exec 1>&2
|
||||
pushd $( git rev-parse --show-toplevel ) &>/dev/null
|
||||
# Ensure we're up to date
|
||||
git pull --rebase
|
||||
# Update the version to a sensible git revision for easy visualization
|
||||
@ -37,3 +38,4 @@ cp -a ${tmpdir}/api-Daemon.py api-daemon/pvcapid/Daemon.py
|
||||
# Clean up
|
||||
rm -r ${tmpdir}
|
||||
dh_clean
|
||||
popd &>/dev/null
|
||||
|
Reference in New Issue
Block a user