]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow copy-builtin to work with modified sources
authorMatthew Thode <mthode@mthode.org>
Wed, 17 Oct 2018 19:06:05 +0000 (14:06 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 Oct 2018 19:06:05 +0000 (12:06 -0700)
commit8d431940038c4a668abdac40b5853b269d49253e
treed39a51d1224022ec55a92f16686295dcc7fa731c
parent2e55034471413fb668d0d910b2c083610b386127
Allow copy-builtin to work with modified sources

`scripts/make_gitrev.sh` had 'set -e' so if any command failed it would
fail and cause copy-builtin to fail (copy-builtin also has `set -e`.
This commit also simplifies scripts/make_gitrev.sh to always write a
file by using a cleanup function.  It also simplifies other areas of
the script as well (making it much shorter).

Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Thode <mthode@mthode.org>
Closes #8022
Closes #8025
copy-builtin
scripts/make_gitrev.sh