]> granicus.if.org Git - pdns/commitdiff
Perl correctly for the recursor configure script
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Oct 2015 10:50:13 +0000 (12:50 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Oct 2015 10:50:13 +0000 (12:50 +0200)
pdns/configure-recursor

index a2dc30723f709ee96b9b9700e0e0761d29cf48e0..9bba2b2ec0860410b5374b5e32f290927741a8de 100755 (executable)
@@ -35,7 +35,7 @@ case $(uname) in
     BUILD_HOST="${BUILD_USER}@$(hostname -f || echo 'localhost')" ;;
 esac
 
-perl -p -i -e '/#define BUILD_HOST/d' config.h
+perl -p -n -i -e 'print unless /#define BUILD_HOST/' config.h
 cat >> config.h << EOF
 #define BUILD_HOST "${BUILD_HOST}"
 EOF