summaryrefslogtreecommitdiff
path: root/aux-gnurl
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-06 19:43:08 +0000
committerng0 <ng0@n0.is>2019-11-06 19:43:08 +0000
commit03d326c16b69a3db6b369e8a05fd0fdf23a7cf35 (patch)
tree5f21975cd8220ffe2ce2894d6146f23eeb3dcfa9 /aux-gnurl
parent3671d2089f040bd0a86d263f9baa43ea5341e4f2 (diff)
parent2e9b725f67d49a9d7a1f053fe52dd4920c9ab1ad (diff)
downloadgnurl-03d326c16b69a3db6b369e8a05fd0fdf23a7cf35.tar.gz
gnurl-03d326c16b69a3db6b369e8a05fd0fdf23a7cf35.tar.bz2
gnurl-03d326c16b69a3db6b369e8a05fd0fdf23a7cf35.zip
Merge tag 'curl-7_67_0'
7.67.0
Diffstat (limited to 'aux-gnurl')
-rwxr-xr-xaux-gnurl/sed.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/aux-gnurl/sed.sh b/aux-gnurl/sed.sh
index 605a5eebc..97ad6cf05 100755
--- a/aux-gnurl/sed.sh
+++ b/aux-gnurl/sed.sh
@@ -1,31 +1,35 @@
#!/bin/sh
+# TODO: convert to awk script.
+
S=$HOME/src/gnunet/gnurl
-# /
-# find . -not -iwholename '*.git*' -not -iwholename '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/<curl\/curl.h>/<gnurl\/curl.h>/g'
find . ! -path '*.git/*' ! -path '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/<curl\/curl.h>/<gnurl\/curl.h>/g'
echo "'curl/curl.h' -> 'gnurl/curl.h' ... [DONE]"
-# docs/
cd $S/docs
-# find . -not -iwholename '*.git*' -not -iwholename '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/TH curl_/TH gnurl_/g'
find . ! -path '*.git/*' ! -path '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/TH curl_/TH gnurl_/g'
echo "'TH curl_' -> 'TH gnurl_' ... [DONE]"
find . ! -path '*.git/*' ! -path '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/TH CURL/TH GNURL/g'
echo "'TH CURL' -> 'TH GNURL' ... [DONE]"
-
-# find . -not -iwholename '*.git*' -not -iwholename '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/libcurl Manual/libgnurl Manual/g'
find . ! -path '*.git/*' ! -path '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/libcurl Manual/libgnurl Manual/g'
echo "'libcurl Manual' -> 'libgnurl Manual' ... [DONE]"
-# find . -not -iwholename '*.git*' -not -iwholename '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/man3\/curl/man3\/gnurl/g'
find . ! -path '*.git/*' ! -path '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/man3\/curl/man3\/gnurl/g'
echo "'man3/curl' -> 'man3/gnurl' ... [DONE]"
# TODO: groff -> mdoc
# find . ! -path '*.git/*' ! -path '*sed.sh*' -type f -print0 | xargs -0 sed -i 's/.SH/.Sh/g'
+awk '{ gsub("CURLOPT_","GNURLOPT_",$0); print $0}' libcurl/opts/Makefile.inc > libcurl/opts/Makefile.inc.tmp
+mv libcurl/opts/Makefile.inc.tmp libcurl/opts/Makefile.inc
+awk '{ gsub("CURLMOPT_","GNURLMOPT_",$0); print $0}' libcurl/opts/Makefile.inc > libcurl/opts/Makefile.inc.tmp
+mv libcurl/opts/Makefile.inc.tmp libcurl/opts/Makefile.inc
+awk '{ gsub("CURLINFO_","GNURLINFO_",$0); print $0}' libcurl/opts/Makefile.inc > libcurl/opts/Makefile.inc.tmp
+mv libcurl/opts/Makefile.inc.tmp libcurl/opts/Makefile.inc
+# docs/libcurl/opts/Makefile.inc
+echo "adjusted docs/libcurl/opts/Makefile.inc ..."
+
cd $S