shithub: riscv

Download patch

ref: 565a4d478e4631ca771e5d0f9e9120420f557b3c
parent: 5e2478ccbb7927256f72cb749cf1a8d97dbbd4e9
author: stanley lieber <[email protected]>
date: Fri Sep 20 07:32:42 EDT 2013

rename /rc/bin/ok to /rc/bin/webpaste

--- a/rc/bin/ok
+++ /dev/null
@@ -1,8 +1,0 @@
-#!/bin/rc
-if(~ $#* 0)
-	file=/fd/0
-if not
-	file=$1
-hpost -u http://okturing.com -p / a_body@$file submit:submit fake:fake a_func:add_post url: |
-grep -e '\/body\"' |
-sed 1q | sed 's/^.*href=\"//g; s/body\".*$/body/g; s/^/http:\/\/okturing.com/g'
--- /dev/null
+++ b/rc/bin/webpaste
@@ -1,0 +1,8 @@
+#!/bin/rc
+if(~ $#* 0)
+	file=/fd/0
+if not
+	file=$1
+hpost -u http://okturing.com -p / a_body@$file submit:submit fake:fake a_func:add_post url: |
+grep -e '\/body\"' |
+sed 1q | sed 's/^.*href=\"//g; s/body\".*$/body/g; s/^/http:\/\/okturing.com/g'
--- a/sys/man/1/hget
+++ b/sys/man/1/hget
@@ -1,6 +1,6 @@
 .TH HGET 1
 .SH NAME
-hget, hpost, ok, urlencode \- retrieve, post to a web page corresponding to a url
+hget, hpost, webpaste, urlencode \- retrieve, post to a web page corresponding to a url
 .SH SYNOPSIS
 .B hget
 [
@@ -48,7 +48,7 @@
 ]
 .I ...
 .PP
-.B ok
+.B webpaste
 .I file
 .PP
 .B urlencode
@@ -178,7 +178,7 @@
 .IR file (1)
 is invoked to determine its mime type.
 .PP
-.I Ok
+.I Webpaste
 uploads the contents either of its standard input or
 .I file
 to the pastebin website
@@ -226,7 +226,7 @@
 .B http://okturing.com
 .IP
 .EX
-% ns | ok
+% ns | webpaste
 .EE
 .SH SOURCE
 .B /rc/bin/hget
@@ -233,7 +233,7 @@
 .br
 .B /rc/bin/hpost
 .br
-.B /rc/bin/ok
+.B /rc/bin/webpaste
 .br
 .B /sys/src/cmd/urlencode.c
 .SH "SEE ALSO"
@@ -244,7 +244,7 @@
 .I Hget ,
 .I hpost
 and
-.I ok
+.I webpaste
 require
 .IR webfs (4)
 service mounted on