gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

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