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