chiark / gitweb /
bin/mdw-build: Don't assign `$srcpath' until after `checkout'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 10 May 2020 13:51:05 +0000 (14:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 10 May 2020 18:46:54 +0000 (19:46 +0100)
commitbe2a23145689a47546e3ccad9f6abe60d7f55bcd
treea821cb2561b3d73d7b8a8660232db052a4932889
parent5b950572ee5243dee530899c945ef007743b2e3d
bin/mdw-build: Don't assign `$srcpath' until after `checkout'.

Otherwise we end up printing two `--- srcpath = ...' lines in the common
`checkout' case, which is just silly.

Instead:

  * set `$srcpath' in the `checkout' stanza, either pointing the new
    tree or back at the original one; and

  * use `$topath' for the original source tree until we've established
    `$srcpath'.
bin/mdw-build