summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
Diffstat (limited to 'toru-path')
-rwxr-xr-xtoru-path34
1 files changed, 0 insertions, 34 deletions
diff --git a/toru-path b/toru-path
deleted file mode 100755
index 5065a30..0000000
--- a/toru-path
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-source $(dirname $(command -v $0))/toru-utils
-
-LASTSYNCFILE=${TORUPATH}/lastsync.paths
-
-# TODO pass other paths via flags
-pkgbuilds=($(get_pkgbuilds ${ABSROOT}))
-paths=()
-
-msg "Updating path cache"
-msg2 "${#pkgbuilds[@]} PKGBUILDs to update"
-for _pkgbuild in ${pkgbuilds[@]}; do
- $DEBUG && plain "$_pkgbuild"
- source ${_pkgbuild} || {
- error "${_pkgbuild} contains errors, skipping"
- continue
- }
-
- fullpath=$(dirname ${_pkgbuild})
-
- for _pkg in ${pkgbase} ${pkgname[@]} ${provides[@]}; do
- paths+=(${_pkg/[<>=]*}:${fullpath})
- done
-
- unset pkgbase pkgname provides
-done
-
-# TODO remove old paths
-# by joining new paths to old paths and exclude the joining points from the
-# cache (sort of a sql join)
-echo ${paths[@]} | tr ' ' "\n" | sort >> ${TORUPATH}/paths
-
-lastsync ${LASTSYNCFILE}