libk  Diff

Differences From Artifact [85eaa3b261]:

To Artifact [254d63007c]:


     1      1   me=$0
     2         -say() { echo >&2 "($me) $1";      }
            2  +say() { echo >&2 "($me) $1";      }
     3      3   has() { which $1 >/dev/null 2>&1; return $?; }
     4      4   check() {
     5      5   	var=$1
     6      6   	test "${!var}" == "" || return 0
     7      7   	say "we were not able to detect a default value for the configuration variable \$$var. please set this variable to $2 and try again."
     8      8   	exit 1
     9      9   }
    10     10   
    11     11   test "$out" = "" && {
    12         -	say "\$out environment variable must be set to your build directory - are you running this script by hand? run ./build.sh in the root directory instead!"
           12  +	say "\$out environment variable must be set to your build directory - are you running this script by hand? run ./build.sh in the root directory instead!"
    13     13   	exit 2
    14     14   }
    15     15   
    16     16   reqpack() {
    17     17   	if ! has "$1"; then
    18         -		say "to $2 for libk, install the $1 package and try again"
           18  +		say "to $2 for libk, install the $1 package and try again"
    19     19   		exit 3
    20     20   	fi
    21     21   }