diff options
Diffstat (limited to 'aux-gnurl/sed.sh')
-rwxr-xr-x | aux-gnurl/sed.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/aux-gnurl/sed.sh b/aux-gnurl/sed.sh new file mode 100755 index 000000000..6d85f4312 --- /dev/null +++ b/aux-gnurl/sed.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +S=$HOME/src/gnunet/gnurl-releases/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' + +cd $S |