blob: 52c3150c719b38cce32ae268320429dfcd7355f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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 . -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
|