[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 218/222: rm sed.sh, add man_lint.sh to Makefile.
From: |
gnunet |
Subject: |
[gnurl] 218/222: rm sed.sh, add man_lint.sh to Makefile. |
Date: |
Thu, 07 Nov 2019 00:11:54 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 84128aed7b3d96de11337724b248981d1f244186
Author: ng0 <address@hidden>
AuthorDate: Wed Nov 6 23:03:21 2019 +0000
rm sed.sh, add man_lint.sh to Makefile.
---
aux-gnurl/Makefile | 11 +++++++++++
aux-gnurl/man_lint.sh | 4 ++--
aux-gnurl/sed.sh | 35 -----------------------------------
3 files changed, 13 insertions(+), 37 deletions(-)
diff --git a/aux-gnurl/Makefile b/aux-gnurl/Makefile
index 2d75b5018..daee65456 100644
--- a/aux-gnurl/Makefile
+++ b/aux-gnurl/Makefile
@@ -1,11 +1,22 @@
+.PHONY: all
all: makefiles allfiles
+.PHONY: makefiles
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:
+.PHONY: allfiles
allfiles:
sh ./gnurl1.sh
+.PHONY: lint
+lint:
+ sh ./man_lint.sh
+
+.PHONE: clean
+clean:
+ git restore ..
+
.include <bsd.prog.mk>
diff --git a/aux-gnurl/man_lint.sh b/aux-gnurl/man_lint.sh
index 7adf1501e..b43d2e0ee 100755
--- a/aux-gnurl/man_lint.sh
+++ b/aux-gnurl/man_lint.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# spit out ONLY error messages using groff.
-for f in `find 'docs/' -name \*\.[1-9]`;
+for f in `find '../docs/' -name \*\.[1-9]`;
do
LC_ALL=en_US.UTF-8 \
MANROFFSEQ='' \
@@ -8,4 +8,4 @@ do
groff -m mandoc -b -z -w w $f;
done
# spit out ONLY error messages with mandoc:
-mandoc -T lint `find 'docs/' -name \*\.[1-9]`
+mandoc -T lint `find '../docs/' -name \*\.[1-9]`
diff --git a/aux-gnurl/sed.sh b/aux-gnurl/sed.sh
deleted file mode 100755
index 97ad6cf05..000000000
--- a/aux-gnurl/sed.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# TODO: convert to awk script.
-
-S=$HOME/src/gnunet/gnurl
-
-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]"
-
-cd $S/docs
-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 . ! -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 . ! -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
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 219/222: include., (continued)
- [gnurl] 219/222: include., gnunet, 2019/11/06
- [gnurl] 212/222: RELEASE-NOTES: synced, gnunet, 2019/11/06
- [gnurl] 222/222: minor, gnunet, 2019/11/06
- [gnurl] 215/222: awk, gnunet, 2019/11/06
- [gnurl] 175/222: tool_operate: Fix retry sleep time shown to user when Retry-After, gnunet, 2019/11/06
- [gnurl] 186/222: tests: add `connect to non-listen` keywords, gnunet, 2019/11/06
- [gnurl] 191/222: appveyor: Use two parallel compilation on appveyor with CMake, gnunet, 2019/11/06
- [gnurl] 196/222: HTTP3: fix Windows build, gnunet, 2019/11/06
- [gnurl] 195/222: appveyor: add --disable-proxy autotools build, gnunet, 2019/11/06
- [gnurl] 206/222: schannel_verify: Fix concurrent openings of CA file, gnunet, 2019/11/06
- [gnurl] 218/222: rm sed.sh, add man_lint.sh to Makefile.,
gnunet <=
- [gnurl] 202/222: INSTALL: add missing space for configure commands, gnunet, 2019/11/06
- [gnurl] 211/222: THANKS: add new names from 7.67.0, gnunet, 2019/11/06
- [gnurl] 220/222: name, include., gnunet, 2019/11/06
- [gnurl] 209/222: certs/Server-localhost-lastSAN-sv: regenerate with sha256, gnunet, 2019/11/06
- [gnurl] 208/222: copyrights: update all copyright notices to 2019 on files changed this year, gnunet, 2019/11/06
- [gnurl] 221/222: Makefile.inc, gnunet, 2019/11/06
- [gnurl] 200/222: examples: remove the "this exact code has not been verified", gnunet, 2019/11/06
- [gnurl] 213/222: Merge tag 'curl-7_67_0', gnunet, 2019/11/06