From 5fc5ec3374ad903cdf6a2c6b30ce7d8de54d087b Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 23 Jun 2006 00:31:08 +0000 Subject: Make startfluxbox aware of --program-prefix and --program-suffix --- ChangeLog | 3 +++ configure.in | 3 +++ util/Makefile.am | 5 +++++ util/startfluxbox.in | 8 ++++---- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 76f8576..6da5371 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc2: +*06/06/23: + * Make startfluxbox aware of --program-prefix and --program-suffix (Mark) + configure.in util/Makefile.am util/startfluxbox.in *06/06/22: * new Resource: session.modKey: (thanks Jim Ramsay i dot am at jimramsay dot com) new Command: SetModKey diff --git a/configure.in b/configure.in index 54e8a12..7b32edc 100644 --- a/configure.in +++ b/configure.in @@ -592,6 +592,9 @@ AC_ARG_WITH( AC_DEFINE_UNQUOTED(LOCALEPATH, "$LOCALE_PATH", "location for nls files") AC_SUBST(LOCALE_PATH) +AC_SUBST(program_prefix) +AC_SUBST(program_suffix) + dnl Determine the return type of signal handlers AC_TYPE_SIGNAL diff --git a/util/Makefile.am b/util/Makefile.am index 58a232f..53a61d7 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -11,6 +11,9 @@ MAINTAINERCLEANFILES= Makefile.in EXTRA_DIST= fbsetbg fluxbox-generate_menu.in \ startfluxbox.in +PROGRAM_PREFIX=@program_prefix@ +PROGRAM_SUFFIX=@program_suffix@ + all-local: startfluxbox clean-local: @@ -22,6 +25,8 @@ fbsetroot.o: fbsetroot.cc ../config.h $(srcdir)/fbsetroot.hh \ startfluxbox: startfluxbox.in @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \ -e "s,@pkgbindir@,$(bindir),g" \ + -e "s,@pkgprefix@,$(PROGRAM_PREFIX:NONE=),g" \ + -e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" \ $(srcdir)/startfluxbox.in > startfluxbox -chmod 755 startfluxbox diff --git a/util/startfluxbox.in b/util/startfluxbox.in index c17304b..4209be9 100755 --- a/util/startfluxbox.in +++ b/util/startfluxbox.in @@ -44,10 +44,10 @@ else # # This sets a black background -@pkgbindir@/fbsetroot -solid black +@pkgbindir@/@pkgprefix@fbsetroot@pkgsuffix@ -solid black # This shows the fluxbox-splash-screen -# fbsetbg -C @pkgdatadir@/splash.jpg +# @pkgprefix@fbsetbg@pkgsuffix@ -C @pkgdatadir@/splash.jpg # Other examples. Check man xset for details. # @@ -79,9 +79,9 @@ else # And last but not least we start fluxbox. # Because it is the last app you have to run it with ''exec'' before it. -exec @pkgbindir@/fluxbox +exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ # or if you want to keep a log: -# exec @pkgbindir@/fluxbox -log "$HOME/.fluxbox/log" +# exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ -log "$HOME/.fluxbox/log" EOF ) > "$startup" fi -- cgit v0.11.2