[gthumb] gthumb.h not propertly generated on BSD
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] gthumb.h not propertly generated on BSD
- Date: Sat, 2 Oct 2010 12:11:14 +0000 (UTC)
commit 37eb86bd4628e7a2a09448e78d0241ebb7f873dd
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Oct 2 14:05:45 2010 +0200
gthumb.h not propertly generated on BSD
don't use non-standard features of sed
[bug #630837]
gthumb/make-header.sh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/make-header.sh b/gthumb/make-header.sh
index 9a382a2..9d2384d 100755
--- a/gthumb/make-header.sh
+++ b/gthumb/make-header.sh
@@ -3,9 +3,10 @@
template="$1"
shift
-includes="\n"
+includes="\\\\n"
for i in "$@"; do
- includes="${includes}#include <gthumb/"$i">\n"
+ includes="${includes}#include <gthumb/"$i">\\\\n"
done
-sed -e 's|@@|'"$includes"'|' $template
+sed -e 's|@@|'"$includes"'|' -e 's|\\n|\
+|g' $template
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]