summaryrefslogtreecommitdiff
path: root/pbs-package-merge
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-18 10:18:17 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-03-18 10:18:17 -0400
commite42d401d0f379a6c6ec541eaf05682973abf4bf9 (patch)
tree967454b7783a04a07a221cc9686f29920012e770 /pbs-package-merge
parent02e65752e544754e029288f0b539661a7040fa76 (diff)
add a shlib, use .pbs-root and .pbs-package to identify directories
Diffstat (limited to 'pbs-package-merge')
-rwxr-xr-xpbs-package-merge9
1 files changed, 2 insertions, 7 deletions
diff --git a/pbs-package-merge b/pbs-package-merge
index f99484b..eca9d1b 100755
--- a/pbs-package-merge
+++ b/pbs-package-merge
@@ -1,6 +1,6 @@
#!/bin/bash -euE
-. libremessages
+. pbs-plumb-shlib
cmd=${0##*/}
usage() {
@@ -27,12 +27,7 @@ main() {
return 1
fi
- if ! git rev-parse --git-dir &>/dev/null; then
- error "Must be in a package (git) directory"
- return 1
- fi
- cd "$(git rev-parse --show-cdup)"
-
+ cdto_pbs-package-root
if [[ ! -r pbstrack ]]; then
error "No pbstrack file found, don't know where to pull from"
return 1