From d56055cf5899cd18b4607544e240b7611140cc27 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Wed, 20 Sep 2017 00:14:07 +0200 Subject: [PATCH] build.go: better rename of library objects --- src/jehanne/cmd/build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jehanne/cmd/build/build.go b/src/jehanne/cmd/build/build.go index e894c72..ba81186 100644 --- a/src/jehanne/cmd/build/build.go +++ b/src/jehanne/cmd/build/build.go @@ -468,7 +468,7 @@ func install(b *build) { case len(b.Library) > 0: ofiles := []string{} for _, o := range b.ObjectFiles { - run(b, *shellhack, exec.Command("mv", o, b.Library + "-" + o)) + os.Rename(o, b.Library + "-" + o) ofiles = append(ofiles, b.Library + "-" + o) } libpath := path.Join(b.Install, b.Library)