Unified · Split
| @@ -223,13 +223,14 @@ bobjc() { · 222 unmodified lines | |||
| 223 | ver=$(cd $srcd && git describe --tags --dirty) || ver="'built on $(date)'" | 223 | ver=$(cd $srcd && git describe --tags --dirty) || ver="'built on $(date)'" |
| 224 | 224 | ||
| 225 | gen=$srcd/genconfstruct.sh | 225 | gen=$srcd/genconfstruct.sh |
| 226 | cmd="(export print paste clip uopen; . $gen >$outd/confstruct.ml)" | 226 | out=$outd/confstruct.ml |
| 227 | keycmd="{ echo '$print $paste $clip $uopen'; digest $gen $outd/confstruct.ml; }" | 227 | cmd="(export print paste clip uopen; . $gen >$out)" |
| 228 | isfresh "$outd/confstruct.ml" "$cmd$(eval $keycmd)" || { | 228 | keycmd="{ echo '$print $paste $clip $uopen'; digest $gen $out; }" |
| 229 | echo "generating $outd/confstruct.ml" | 229 | isfresh "$out" "$cmd$(eval $keycmd)" || { |
| 230 | echo "generating $out" | ||
| 230 | eval "$cmd" || die $gen failed | 231 | eval "$cmd" || die $gen failed |
| 231 | echo "$cmd$(eval $keycmd)" > "$outd/confstruct.ml.past" | 232 | echo "$cmd$(eval $keycmd)" > "${out}.past" |
| 232 | } && vecho "fresh $outd/confstruct.ml" | 233 | } && vecho "fresh $out" |
| 233 | 234 | ||
| 234 | shift 1 | 235 | shift 1 |
| 235 | for target; do | 236 | for target; do |