From ce6e3c7361ea355ef30c7eb4b34c0b85dab77709 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 2 Aug 2010 19:41:45 -0400 Subject: [PATCH] configure.ac: fixup BYOBU_PREFIX in the configure, LP: #611157 --- configure.ac | 4 ++++ debian/changelog | 1 + 2 files changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 0a5f9baa..28b0cacf 100644 --- a/configure.ac +++ b/configure.ac @@ -27,3 +27,7 @@ AC_OUTPUT(Makefile \ usr/share/doc/byobu/Makefile \ usr/lib/byobu/Makefile \ usr/share/man/man1/Makefile usr/bin/Makefile) + +if [ -n "${prefix}" ] && [ "${prefix}" != "/usr"]; then + sed -i "s: && export BYOBU_PREFIX=\"/usr\": && export BYOBU_PREFIX=\"${prefix}\":g" usr/bin/byobu-janitor usr/bin/byobu-launcher usr/bin/byobu-select-profile usr/bin/byobu-status usr/bin/byobu +fi diff --git a/debian/changelog b/debian/changelog index 3548988a..71e71487 100644 --- a/debian/changelog +++ b/debian/changelog @@ -36,6 +36,7 @@ byobu (3.0-0ubuntu1) maverick; urgency=low * usr/share/applications/byobu.desktop: fix lintian warning about encoding key * debian/source/format: added + * configure.ac: fixup BYOBU_PREFIX in the configure, LP: #611157 -- Dustin Kirkland Mon, 02 Aug 2010 18:54:32 -0400