diff options
author | Steve Wills <swills@FreeBSD.org> | 2015-07-01 15:26:41 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2015-07-01 15:26:41 +0000 |
commit | ece696bef09b108f3cf0506a5917e48591d92200 (patch) | |
tree | e1847fa924fb58ba145ced5d4f631bebc15b1b9f /Mk | |
parent | ad36c89df1e0b0b3d059158eeb926032560033ea (diff) | |
download | ports-ece696bef09b108f3cf0506a5917e48591d92200.tar.gz ports-ece696bef09b108f3cf0506a5917e48591d92200.zip |
Notes
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Scripts/pkgencode.awk | 23 |
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); } |