diff options
author | ng0 <ng0@n0.is> | 2019-01-12 23:35:24 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-01-12 23:35:24 +0000 |
commit | af8ea3715fefeaaeb26c6a9f8112b326c5686de9 (patch) | |
tree | f1bb3a465998f4b78f55c079707ffc83ed30a1d4 /aux-gnurl | |
parent | 6cc7046ad4566349e4cae2aeac31d75cc8a799b9 (diff) | |
download | gnurl-af8ea3715fefeaaeb26c6a9f8112b326c5686de9.tar.gz gnurl-af8ea3715fefeaaeb26c6a9f8112b326c5686de9.tar.bz2 gnurl-af8ea3715fefeaaeb26c6a9f8112b326c5686de9.zip |
aux-gnurl/sed.sh: portability fixes
Diffstat (limited to 'aux-gnurl')
-rwxr-xr-x | aux-gnurl/sed.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/aux-gnurl/sed.sh b/aux-gnurl/sed.sh index af3133acd..69faa9ac3 100755 --- a/aux-gnurl/sed.sh +++ b/aux-gnurl/sed.sh @@ -3,18 +3,22 @@ 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 . -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 . -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 . -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 . -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]" cd $S |