]> git.ipfire.org Git - pakfire.git/blame - scripts/functions-constants
Merge branch 'master' of git://git.ipfire.org/oddments/pakfire
[pakfire.git] / scripts / functions-constants
CommitLineData
6566e5f2
MT
1#!/bin/bash
2
3# Debugging mode for these scripts
4DEBUG=0
5
6# Interpreters that should not be found by find_interpreters()
7INTERPRETERS_TO_BE_SKIPPED="/usr/bin/env"
8
9# Some path constants...
10LIBRARY_PATHS="/lib /usr/lib /libexec /usr/libexec"
11BINARY_PATHS="${LIBRARY_PATHS} /bin /sbin /usr/bin /usr/sbin"
12
13# List of directories that could probably empty and are removed automatically
14# so they won't appear in any package.
15ORPHAN_CANDIDATES="${BINARY_PATHS} /usr /usr/include /usr/share"
16for i in $(seq 0 9); do
17 ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/share/man/man${i}"
18done
19ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/lib/pkgconfig"
20ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/lib/python*"
21