Commit 4dc85d67 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys Committed by Russ Cox

syscall: don't clobber source files if mksyscall.pl fails.

R=golang-dev, minux.ma, r, rsc
CC=golang-dev
https://golang.org/cl/6353069
parent eff32f57
......@@ -87,7 +87,8 @@ case "$1" in
-syscalls)
for i in zsyscall*go
do
sed 1q $i | sed 's;^// ;;' | sh | gofmt >_$i && mv _$i $i
sed 1q $i | sed 's;^// ;;' | sh > _$i && gofmt < _$i > $i
rm _$i
done
exit 0
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment