gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 214/222: awk scripts.


From: gnunet
Subject: [gnurl] 214/222: awk scripts.
Date: Thu, 07 Nov 2019 00:11:50 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 38262bc290b6a534895d5d063e9b95a0877b21fd
Author: ng0 <address@hidden>
AuthorDate: Wed Nov 6 21:53:03 2019 +0000

    awk scripts.
---
 aux-gnurl/.gitignore |  1 +
 aux-gnurl/Makefile   | 13 +++++++++++++
 aux-gnurl/gnurl0.awk |  8 ++++++++
 aux-gnurl/gnurl1.awk | 10 ++++++++++
 aux-gnurl/gnurl1.sh  |  5 +++++
 5 files changed, 37 insertions(+)

diff --git a/aux-gnurl/.gitignore b/aux-gnurl/.gitignore
new file mode 100644
index 000000000..24600083d
--- /dev/null
+++ b/aux-gnurl/.gitignore
@@ -0,0 +1 @@
+!Makefile
diff --git a/aux-gnurl/Makefile b/aux-gnurl/Makefile
new file mode 100644
index 000000000..1a388b706
--- /dev/null
+++ b/aux-gnurl/Makefile
@@ -0,0 +1,13 @@
+all: makefiles allfiles
+
+makefiles:
+       ./gnurl0.awk ../docs/libcurl/opts/Makefile.inc > 
../docs/libcurl/opts/Makefile.inc.tmp; mv ../docs/libcurl/opts/Makefile.inc.tmp 
../docs/libcurl/opts/Makefile.inc
+
+# manfiles:
+
+allfiles:
+.for _file in ${_ALLFILES}
+       ./gnurl1 ${_file} > ${_file}.tmp ; mv ${_file}.tmp ${_file}
+.endfor
+
+.include <bsd.prog.mk>
diff --git a/aux-gnurl/gnurl0.awk b/aux-gnurl/gnurl0.awk
new file mode 100755
index 000000000..955bc9763
--- /dev/null
+++ b/aux-gnurl/gnurl0.awk
@@ -0,0 +1,8 @@
+#!/usr/bin/awk -f
+
+{
+    gsub("CURLOPT_","GNURLOPT_");
+    gsub("CURLMOPT_","GNURLMOPT_");
+    gsub("CURLINFO_","GNURLINFO_");
+    print $0
+}
diff --git a/aux-gnurl/gnurl1.awk b/aux-gnurl/gnurl1.awk
new file mode 100644
index 000000000..322b08d72
--- /dev/null
+++ b/aux-gnurl/gnurl1.awk
@@ -0,0 +1,10 @@
+/usr/bin/awk -f
+
+{
+    gsub("curl/curl.h","gnurl/curl.h");
+    gsub("TH curl_", "TH gnurl_");
+    gsub("TH CURL", "TH GNURL");
+    gsub("libcurl Manual", "libgnurl Manual");
+    gsub("man3/curl", "man3/gnurl");
+    print $0
+}
diff --git a/aux-gnurl/gnurl1.sh b/aux-gnurl/gnurl1.sh
new file mode 100644
index 000000000..d23ed191e
--- /dev/null
+++ b/aux-gnurl/gnurl1.sh
@@ -0,0 +1,5 @@
+_ALLFILES=$(find .. ! -path '*.git/*' ! -path '*aux-gnurl/**' ! -path '*.der' 
! -path '*.in' ! -path '*.Po' ! -path '*.tar*' -type f -exec grep -Il '.' {} \; 
| xargs -L 1 echo)
+for f in ${_ALLFILES}; do
+        echo ${f}
+#      ./gnurl1 ${f} > ${f}.tmp ; mv ${f}.tmp ${f}
+done

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]