Skip to content

Commit

Permalink
generate: provide an error message when distgen binary not available
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubatrh authored and praiskup committed Jun 4, 2018
1 parent ddb342c commit 82aaf71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ nl='
'

test -f auto_targets.mk && rm auto_targets.mk
DG="${DG-/bin/dg}"
[ ! -x "$DG" ] && echo " Error: distgen binary not found or not executable in $DG" && \
echo " Make sure distgen is properly installed on your host in $DG, or provide a path to your distgen binary via \$DG" && exit 1

DISTGEN_COMBINATIONS=$("$DG" --multispec specs/multispec.yml --multispec-combinations)

DISTGEN_COMBINATIONS=$(${DG-/bin/dg} --multispec specs/multispec.yml --multispec-combinations)

clean_rule_variables(){
src=""
Expand Down

0 comments on commit 82aaf71

Please sign in to comment.