diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-22 13:36:04 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-22 13:36:04 -0300 |
commit | 2dd17dbe005b9d87a1d629e8fb029ae10f493790 (patch) | |
tree | 83fcf1b2d1e7b9fe97cb4955bce7d1dac848deb4 /toru-where | |
parent | b8d0640c2d882e514a583e372bb26280a60aa604 (diff) | |
parent | b3b52d5c4a3cbcdeb505b099230107b830290e8e (diff) |
Merge branch 'master' into newroot
Conflicts:
treepkg
Diffstat (limited to 'toru-where')
-rwxr-xr-x | toru-where | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/toru-where b/toru-where new file mode 100755 index 0000000..02a7a88 --- /dev/null +++ b/toru-where @@ -0,0 +1,11 @@ +#!/bin/bash +# Locates a PKGBUILD dir on toru's path cache + +source $(dirname $(command -v $0))/toru-utils + +# Look in all cached but pick the last one +grep "^${1}:" "${TORUPATH}/paths" 2>/dev/null| \ + tail -n1 2>/dev/null|\ + cut -d: -f2 2>/dev/null + +exit $? |