aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2015-07-01 15:26:41 +0000
committerSteve Wills <swills@FreeBSD.org>2015-07-01 15:26:41 +0000
commitece696bef09b108f3cf0506a5917e48591d92200 (patch)
treee1847fa924fb58ba145ced5d4f631bebc15b1b9f /Mk
parentad36c89df1e0b0b3d059158eeb926032560033ea (diff)
downloadports-ece696bef09b108f3cf0506a5917e48591d92200.tar.gz
ports-ece696bef09b108f3cf0506a5917e48591d92200.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/pkgencode.awk23
1 files changed, 0 insertions, 23 deletions
diff --git a/Mk/Scripts/pkgencode.awk b/Mk/Scripts/pkgencode.awk
deleted file mode 100644
index b37a00ac065b..000000000000
--- a/Mk/Scripts/pkgencode.awk
+++ /dev/null
@@ -1,23 +0,0 @@
-# $FreeBSD$
-
-BEGIN {
- for (i = 0; i <= 255; i++)
- ord[sprintf("%c", i)] = i
- for (i = 0; i < 128; i++) {
- if (i != 37)
- ascii = sprintf("%s%c", ascii, i)
- }
-}
-function encode(str, c, len, res) {
- len = length(str)
- res = ""
- for (i = 1; i <= len; i++) {
- c = substr(str, i, 1);
- if (index(ascii, c) != 0)
- res = res c
- else
- res = res "%" sprintf("%02X", ord[c])
- }
- return res
-}
-{ print encode($0); }