summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-12 12:46:50 -0400
committerOri Bernstein <ori@eigenstate.org>2015-06-12 14:01:54 -0400
commit21b91ad9fa7ae830272dc67fbe3150dc30921702 (patch)
treea674ea3e28f90ba8fa2f4521069a010b4742961e /mbld/install.myr
parent96c8217e913d8d6de22bbb1aa3624c26e66838fc (diff)
downloadmc-21b91ad9fa7ae830272dc67fbe3150dc30921702.tar.gz
Move fmt to fmt2.
Shit seems to work.
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr18
1 files changed, 9 insertions, 9 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index e88a43a..a36eee2 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -34,7 +34,7 @@ const movetargs = {b, rm
| `Lib lt:
if lt.install
movefile(b, rm, lt.dir, lt.name, config.Libpath, 0o644)
- libarchive = std.f2fmt("lib{}.a", lt.name)
+ libarchive = std.fmt("lib{}.a", lt.name)
movefile(b, rm, lt.dir, libarchive, config.Libpath, 0o644)
std.slfree(libarchive)
;;
@@ -60,18 +60,18 @@ const movefile = {b, rm, dir, file, prefix, perm
setdir(b, dir)
path = std.pathjoin([opt_destdir, opt_instroot, prefix, file][:])
if rm
- std.f2put("\trm {}\n", path)
+ std.put("\trm {}\n", path)
if !std.remove(path)
- std.f2put("\t\tno such file {}\n", file)
+ std.put("\t\tno such file {}\n", file)
;;
else
- std.f2put("\t{} => {}\n", file, path)
+ std.put("\t{} => {}\n", file, path)
std.remove(path)
match std.slurp(file)
- | `std.Fail m: std.f2fatal("Could not open {} for reading\n", file)
+ | `std.Fail m: std.fatal("Could not open {} for reading\n", file)
| `std.Ok buf:
if !std.blat(path, buf, perm)
- std.f2put("Could not write {}\n", file)
+ std.put("Could not write {}\n", file)
;;
std.slfree(buf)
;;
@@ -84,15 +84,15 @@ const moveman = {b, rm, dir, man
match std.strrfind(man, ".")
| `std.None:
- std.f2fatal("manpage {} has no section\n", man)
+ std.fatal("manpage {} has no section\n", man)
| `std.Some s:
sect = s + 1
if s + 1 == man.len
- std.f2fatal("manpage {} missing suffix\n", man)
+ std.fatal("manpage {} missing suffix\n", man)
;;
;;
- manrel = std.f2fmt("{}{}", opt_manpath, man[sect:])
+ manrel = std.fmt("{}{}", opt_manpath, man[sect:])
movefile(b, rm, dir, man, manrel, 0o644)
std.slfree(manrel)
}