diff options
author | markt <markt> | 2006-06-23 00:31:08 (GMT) |
---|---|---|
committer | markt <markt> | 2006-06-23 00:31:08 (GMT) |
commit | 5fc5ec3374ad903cdf6a2c6b30ce7d8de54d087b (patch) | |
tree | 17b83d474590815da1e23f3e8843c6faf8112e98 /util | |
parent | dedbd7e46816ebce6628d9357cc7feee7a61ab57 (diff) | |
download | fluxbox-5fc5ec3374ad903cdf6a2c6b30ce7d8de54d087b.zip fluxbox-5fc5ec3374ad903cdf6a2c6b30ce7d8de54d087b.tar.bz2 |
Make startfluxbox aware of --program-prefix and --program-suffix
Diffstat (limited to 'util')
-rw-r--r-- | util/Makefile.am | 5 | ||||
-rwxr-xr-x | util/startfluxbox.in | 8 |
2 files changed, 9 insertions, 4 deletions
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 | |||
11 | EXTRA_DIST= fbsetbg fluxbox-generate_menu.in \ | 11 | EXTRA_DIST= fbsetbg fluxbox-generate_menu.in \ |
12 | startfluxbox.in | 12 | startfluxbox.in |
13 | 13 | ||
14 | PROGRAM_PREFIX=@program_prefix@ | ||
15 | PROGRAM_SUFFIX=@program_suffix@ | ||
16 | |||
14 | all-local: startfluxbox | 17 | all-local: startfluxbox |
15 | 18 | ||
16 | clean-local: | 19 | clean-local: |
@@ -22,6 +25,8 @@ fbsetroot.o: fbsetroot.cc ../config.h $(srcdir)/fbsetroot.hh \ | |||
22 | startfluxbox: startfluxbox.in | 25 | startfluxbox: startfluxbox.in |
23 | @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \ | 26 | @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \ |
24 | -e "s,@pkgbindir@,$(bindir),g" \ | 27 | -e "s,@pkgbindir@,$(bindir),g" \ |
28 | -e "s,@pkgprefix@,$(PROGRAM_PREFIX:NONE=),g" \ | ||
29 | -e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" \ | ||
25 | $(srcdir)/startfluxbox.in > startfluxbox | 30 | $(srcdir)/startfluxbox.in > startfluxbox |
26 | -chmod 755 startfluxbox | 31 | -chmod 755 startfluxbox |
27 | 32 | ||
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 | |||
44 | # | 44 | # |
45 | # This sets a black background | 45 | # This sets a black background |
46 | 46 | ||
47 | @pkgbindir@/fbsetroot -solid black | 47 | @pkgbindir@/@pkgprefix@fbsetroot@pkgsuffix@ -solid black |
48 | 48 | ||
49 | # This shows the fluxbox-splash-screen | 49 | # This shows the fluxbox-splash-screen |
50 | # fbsetbg -C @pkgdatadir@/splash.jpg | 50 | # @pkgprefix@fbsetbg@pkgsuffix@ -C @pkgdatadir@/splash.jpg |
51 | 51 | ||
52 | # Other examples. Check man xset for details. | 52 | # Other examples. Check man xset for details. |
53 | # | 53 | # |
@@ -79,9 +79,9 @@ else | |||
79 | # And last but not least we start fluxbox. | 79 | # And last but not least we start fluxbox. |
80 | # Because it is the last app you have to run it with ''exec'' before it. | 80 | # Because it is the last app you have to run it with ''exec'' before it. |
81 | 81 | ||
82 | exec @pkgbindir@/fluxbox | 82 | exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ |
83 | # or if you want to keep a log: | 83 | # or if you want to keep a log: |
84 | # exec @pkgbindir@/fluxbox -log "$HOME/.fluxbox/log" | 84 | # exec @pkgbindir@/@pkgprefix@fluxbox@pkgsuffix@ -log "$HOME/.fluxbox/log" |
85 | EOF | 85 | EOF |
86 | ) > "$startup" | 86 | ) > "$startup" |
87 | fi | 87 | fi |