From a1fcc16aa79c923b7161de5f948115af82e038f0 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 23 Aug 2010 16:53:00 -0400 Subject: [PATCH] configure.ac: POSIX sed doesn't include -i option, LP: #619328, #622640 --- configure.ac | 7 ++++++- debian/changelog | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4acd42d5..3bad2dea 100644 --- a/configure.ac +++ b/configure.ac @@ -29,5 +29,10 @@ AC_OUTPUT(Makefile \ usr/share/man/man1/Makefile usr/bin/Makefile) if test -n "${prefix}" && test "${prefix}" != "/usr"; then - sed -i "s: \&\& export BYOBU_PREFIX=.*$: \&\& export BYOBU_PREFIX=\"${prefix}\":" usr/bin/byobu-janitor usr/bin/byobu-launcher usr/bin/byobu-select-profile usr/bin/byobu-status usr/bin/byobu + for i in usr/bin/byobu-*; do + # This hackery seems necessary for Mac OSX and Solaris installs + sed "s/BYOBU_PREFIX=.*$/BYOBU_PREFIX=\"${prefix}\"/" "$i" > "$i.new" + mv -f "$i.new" "$i" + chmod 755 "$i" + done fi diff --git a/debian/changelog b/debian/changelog index a66d5c8b..cdbb37dd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ byobu (3.2) unreleased; urgency=low * usr/bin/byobu-launcher: don't launch if in a dumb terminal, LP: #612886 * usr/lib/byobu/network, usr/share/man/man1/byobu.1: allow for configuration of network traffic in [kM]ps, LP: #578377 + * configure.ac: POSIX sed doesn't include -i option, LP: #619328, #622640 -- Dustin Kirkland Tue, 03 Aug 2010 15:19:23 -0400