diff options
author | ng0 <ng0@n0.is> | 2019-11-06 23:03:21 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-06 23:05:12 +0000 |
commit | 84128aed7b3d96de11337724b248981d1f244186 (patch) | |
tree | 636fe30b9d296eaefd49c39b58b2396351a390cd | |
parent | 6cdcf074ff179ec4721dacae705ca536e5681f0a (diff) | |
download | gnurl-84128aed7b3d96de11337724b248981d1f244186.tar.gz gnurl-84128aed7b3d96de11337724b248981d1f244186.tar.bz2 gnurl-84128aed7b3d96de11337724b248981d1f244186.zip |
rm sed.sh, add man_lint.sh to Makefile.
-rw-r--r-- | aux-gnurl/Makefile | 11 | ||||
-rwxr-xr-x | aux-gnurl/man_lint.sh | 4 | ||||
-rwxr-xr-x | 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 |