topgit_deps.awk: strip trailing \r off .topdeps lines
commit021f4543917db759f69def2e275c8634efac6208
authorKyle J. McKay <mackyle@gmail.com>
Sat, 17 Feb 2018 04:38:27 +0000 (16 20:38 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 17 Feb 2018 04:38:27 +0000 (16 20:38 -0800)
tree3ce5e867c3fd82b783290b92c56ae4516467c40f
parent5d1f582356427ead5c2f8db2b8b0304957ff1b1d
topgit_deps.awk: strip trailing \r off .topdeps lines

If, somehow, the .topdeps file ends up with \r\n line endings
in it then awk will not strip that \r and the branch name will
be considered invalid because it contains invalid characters.

Tolerate this situation by stripping up to one and only one
trailing \r from the end of the branch name field.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
awk/topgit_deps.awk