[Groonga-commit] groonga/groonga at 9d1f35d [master] Don't require "-i" option for sed

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 3 12:09:52 JST 2015


Kouhei Sutou	2015-05-03 12:09:52 +0900 (Sun, 03 May 2015)

  New Revision: 9d1f35d61563ea3c5900dc2c5ee1db273e1bf26c
  https://github.com/groonga/groonga/commit/9d1f35d61563ea3c5900dc2c5ee1db273e1bf26c

  Message:
    Don't require "-i" option for sed
    
    sed on some BSD systems doesn't have "-i" option.

  Modified files:
    src/httpd/configure

  Modified: src/httpd/configure (+4 -2)
===================================================================
--- src/httpd/configure    2015-04-30 19:19:57 +0900 (0603cbb)
+++ src/httpd/configure    2015-05-03 12:09:52 +0900 (2eb6c52)
@@ -96,10 +96,12 @@ auto/configure \
   ${configure_args}
 
 if [ "${GROONGA_HTTPD_DEBUG}" = "yes" ]; then
-  sed -i".without-debug-flags" \
+  objs_makefile_backup="objs/Makefile.with-debug-flags"
+  mv objs/Makefile "${objs_makefile_backup}"
+  sed \
     -e '/^CFLAGS =/ s/ -O / -O0 /' \
     -e '/^CFLAGS =/ s/ -g / -g3 /' \
-    objs/Makefile
+    objs_makefile_backup > objs/Makefile
 fi
 
 # Consider security by using position independent code (PIE).
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index