#!/bin/sh # sbopkglint test, must be sourced by sbopkglint (not run standalone). # PKG, PRGNAM, VERSION, ARCH are set by sbopkglint. also the current # directory is the root of the installed package tree. ####################################################################### # checks for /tmp/SBo (or the environment TMP) hardcoded in files. # don't check the SlackBuild in the doc dir, since it's guaranteed to match. found="$(find . -type f | grep -v '^\./usr/doc/.*\.SlackBuild$' | xargs fgrep -l "$TMP")" if [ -n "$found" ]; then warn "found files with TMP ($TMP) baked in:" echo "$found" 1>&2 fi