# This file has been automatically generated by env-tool. # You probably do not want to edit this by hand. # Helper function extend_env() { case "${!1}" in "$2") ;; *:"$2") ;; "$2":*) ;; *:"$2":*) ;; *) if $4; then echo "env-tool: extending $1 with $2" fi if $3; then export $1="${!1}:$2" else export $1="$2:${!1}" fi;; esac } extend_env_list () { for ext in $2 do extend_env $1 $ext $3 $4 done } case "x${TEXINPUTS:-y}" in xy) export TEXINPUTS=':/testing1:/testing2:/testing3' echo "env-tool: setting TEXINPUTS with :/testing1:/testing2:/testing3";; *) extend_env_list TEXINPUTS ("/testing1" "/testing2" "/testing3") false true; ;; esac case "x${BIBINPUTS:-y}" in xy) export BIBINPUTS=':/testing1//:/testing2//:/testing3//' echo "env-tool: setting BIBINPUTS with :/testing1//:/testing2//:/testing3//";; *) extend_env_list BIBINPUTS ("/testing1//" "/testing2//" "/testing3//") false true; ;; esac case "x${PATH:-y}" in xy) export PATH='/testing1:/testing2:/testing3' echo "env-tool: setting PATH with /testing1:/testing2:/testing3";; *) extend_env_list PATH ("/testing1" "/testing2" "/testing3") false true; ;; esac unset -f extend_env unset -f extend_env_list # Thank you for using env-tool!