summaryrefslogtreecommitdiff
path: root/aux-gnurl
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-01-12 23:35:24 +0000
committerng0 <ng0@n0.is>2019-01-12 23:35:24 +0000
commitaf8ea3715fefeaaeb26c6a9f8112b326c5686de9 (patch)
treef1bb3a465998f4b78f55c079707ffc83ed30a1d4 /aux-gnurl
parent6cc7046ad4566349e4cae2aeac31d75cc8a799b9 (diff)
downloadgnurl-af8ea3715fefeaaeb26c6a9f8112b326c5686de9.tar.gz
gnurl-af8ea3715fefeaaeb26c6a9f8112b326c5686de9.tar.bz2
gnurl-af8ea3715fefeaaeb26c6a9f8112b326c5686de9.zip
aux-gnurl/sed.sh: portability fixes
Diffstat (limited to 'aux-gnurl')
-rwxr-xr-xaux-gnurl/sed.sh12
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