summaryrefslogtreecommitdiff
path: root/src/toru/toru-where
blob: 9d90972a6a5fc9bb677cda66132a984ef579eb28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Locates a PKGBUILD dir on toru's path cache

# Copyright (C) 2012 Nicolás Reynolds <fauno@parabola.nu>
#
# License: Unspecified

. $(librelib conf.sh)
load_files libretools
check_vars libretools TORUPATH || exit 1

PATHFILE=${TORUPATH}/paths.tch

tcamgr get ${PATHFILE} $1 2>/dev/null || echo ""