Add fmt - localbin - leot's localbin (~/bin)
(HTM) hg clone https://bitbucket.org/iamleot/localbin
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 8f4c9fb4efa7f58ccbe02a53e059a6e33a882c96
(DIR) parent 26208251e8ba9592971500ad3e4f3a6900f1c2a8
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 22 May 2019 15:07:12
Add fmt
Diffstat:
fmt | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff -r 26208251e8ba -r 8f4c9fb4efa7 fmt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/fmt Wed May 22 15:07:12 2019 +0200
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#
+# Invoke heirloom-fmt if available, falling back to base one.
+#
+
+if [ -x /usr/pkg/heirloom/bin/fmt ]; then
+ exec /usr/pkg/heirloom/bin/fmt "$@"
+fi
+
+exec /usr/bin/fmt "$@"