diff options
| author | Scott Moynes <smoynes@nexus.carleton.ca> | 2002-04-18 21:07:47 +0000 |
|---|---|---|
| committer | Scott Moynes <smoynes@nexus.carleton.ca> | 2002-04-18 21:07:47 +0000 |
| commit | 66e3f4d0600eeb8c642dc2f3b3320a3e9af075e3 (patch) | |
| tree | 0dd4214c8c08421acfbce1c8d6bd340572045bfb /util | |
| parent | 5067369f76f1f0db140a0e4c2c9af43982290183 (diff) | |
added new bsetbg manpage
Diffstat (limited to 'util')
| -rw-r--r-- | util/Makefile.in | 88 | ||||
| -rw-r--r-- | util/bsetbg.1 | 130 |
2 files changed, 73 insertions, 145 deletions
diff --git a/util/Makefile.in b/util/Makefile.in index fbcc054d..3f3f38dc 100644 --- a/util/Makefile.in +++ b/util/Makefile.in @@ -117,6 +117,7 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = tar GZIP_ENV = --best +DEP_FILES = .deps/bsetroot.P SOURCES = $(bsetroot_SOURCES) OBJECTS = $(bsetroot_OBJECTS) @@ -124,9 +125,9 @@ all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .cc .o .s $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps util/Makefile + cd $(top_srcdir) && $(AUTOMAKE) --gnu util/Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status @@ -156,9 +157,6 @@ uninstall-binPROGRAMS: rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done -.c.o: - $(COMPILE) -c $< - .s.o: $(COMPILE) -c $< @@ -234,6 +232,11 @@ distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = util distdir: $(DISTFILES) + here=`cd $(top_builddir) && pwd`; \ + top_distdir=`cd $(top_distdir) && pwd`; \ + distdir=`cd $(distdir) && pwd`; \ + cd $(top_srcdir) \ + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu util/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ @@ -244,6 +247,57 @@ distdir: $(DISTFILES) || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done + +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) + +-include $(DEP_FILES) + +mostlyclean-depend: + +clean-depend: + +distclean-depend: + -rm -rf .deps + +maintainer-clean-depend: + +%.o: %.c + @echo '$(COMPILE) -c $<'; \ + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp + +%.lo: %.c + @echo '$(LTCOMPILE) -c $<'; \ + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ + < .deps/$(*F).pp > .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm -f .deps/$(*F).pp + +%.o: %.cc + @echo '$(CXXCOMPILE) -c $<'; \ + $(CXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp + +%.lo: %.cc + @echo '$(LTCXXCOMPILE) -c $<'; \ + $(LTCXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ + < .deps/$(*F).pp > .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: @@ -282,23 +336,25 @@ distclean-generic: maintainer-clean-generic: -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic + mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am -clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic \ - mostlyclean-am +clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ + clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ - distclean-generic clean-am distclean-local + distclean-depend distclean-generic clean-am \ + distclean-local distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am + maintainer-clean-depend maintainer-clean-generic \ + distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." @@ -309,11 +365,13 @@ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS tags \ mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \ -distdir info-am info dvi-am dvi check check-am installcheck-am \ -installcheck install-exec-am install-exec install-data-am install-data \ -install-am install uninstall-am uninstall all-redirect all-am all \ -installdirs mostlyclean-generic distclean-generic clean-generic \ -maintainer-clean-generic clean mostlyclean distclean maintainer-clean +distdir mostlyclean-depend distclean-depend clean-depend \ +maintainer-clean-depend info-am info dvi-am dvi check check-am \ +installcheck-am installcheck install-exec-am install-exec \ +install-data-am install-data install-am install uninstall-am uninstall \ +all-redirect all-am all installdirs mostlyclean-generic \ +distclean-generic clean-generic maintainer-clean-generic clean \ +mostlyclean distclean maintainer-clean distclean-local: diff --git a/util/bsetbg.1 b/util/bsetbg.1 deleted file mode 100644 index 9dd08389..00000000 --- a/util/bsetbg.1 +++ /dev/null @@ -1,130 +0,0 @@ -.TH bsetbg 1 "February 2002" "bsetbg" "v2.0" -.SH NAME -bsetbg \- utility to manipulate the appearance of the X11 desktop's root window. -.SH SYNOPSIS -\fBbsetbg\fR [options] \fIimage\fR -.SH DESCRIPTION -\fBbsetbg\fR is intended to provide a standard method for the \fIBlackbox\fR -window manager to alter the background of the root window -(although it will work with any other window manager as well). \fBbsetbg\fR -acts as a wrapper both to \fIbsetroot\fR -and to a flexible variety of third-party applications that it uses when handling images files. - -.SH OPTIONS -.TP -\fB\-f\fR, \fB\-full\fR \fIimage\fR -\fIimage\fR is stretched to fill the entire desktop. -.TP -\fB\-t\fR, \fB\-tile\fR \fIimage\fR -\fIimage\fR is tiled on the desktop. -.TP -\fB\-c\fR, \fB\-center\fR \fIimage\fR -\fIimage\fR is centered on the desktop. -.TP -\fB\-e\fR, \fB\-exec\fR \fIprogram\fR \fIoptions\fR \fIfallback\-\fIarg\fR \fIimage\fR -This option tells \fBbsetbg\fR to run a seperate command by executing \fIprogram\fR with -\fIoptions\fR, where \fIoptions\fR are arguments to \fIprogram\fR. - -If a \fIfallback\-arg\fR is supplied (\fB\-full\fR, \fB\-tile\fR, or \fB\-center\fR -as described above), -\fBbsetbg\fR will assume that the last argument is a filename. In the case that -\fIprogram\fR exits non-zero or isn't available on the target system, \fBbsetbg\fR -will try to handle the file with the fallback argument. - -See the \fBEXAMPLES\fR section for more information on \fB\-exec\fR. -.TP -\fB\-p\fR, \fB\-post\fR \fIlist\fR -Specifies a list of arguments to pass to the $POST_COMMAND. -.TP -\fB\-d\fR, \fB\-debug\fR -Debugging mode. \fBbsetbg\fR will print commands without executing them. -.TP -\fB\-g\fR, \fB\-generate\fR \fIlist\fR -Output a list of default configuration values, suitable for redirecting into -\fI~/.bsetbgrc\fR. Any arguments that are supplied will be considered applications -to search for in the system path, overriding \fBbsetbg\fR's internal defaults. -.TP -\fB\-v\fR, \fB\-version\fR -Output version number. -.TP -\fB\-h\fR, \fB\-help\fR -Output a brief usage message. - -.SH OTHER OPTIONS -\fBbsetbg\fR will also accept all of the arguments for \fIbsetroot\fR. -Consult the \fIbsetroot\fR(1) man page for further information. - -.SH CONFIGURATION -\fBbsetbg\fR will read its configuration values from the file \fI~/.bsetbgrc\fR -if it exists. Otherwise, it will scan the -system path for a pre-defined list of image applications to use -(currently this list consists of qiv, xli, xv, wmsetbg, Esetroot, -display, and xsetbg). -\fP -\fI~/.bsetbgrc\fR should contain the following variables: -.TP -\fB CENTER=\fR\fI"string"\fR -Application and arguments to be used to center an image on the root window -when the \fB-center\fR argument is specified. - -.TP -\fB FULL=\fR\fI"string"\fR -Application and arguments to be used to stretch an image to fill the root window -when the \fB-full\fR argument is specified. - -.TP -\fB TILE=\fR\fI"string"\fR -Application and arguments to be used to tile an image on the root window -when the \fB-tile\fR argument is specified. - -.TP -\fB DEFAULT=\fR\fI"string"\fR -Action to take place by default if none of the above have been specified. - -.TP -The following variables are optional: - -.TP -\fB NO_EXEC=\fR\fI"boolean"\fR -If this variable is set, bsetbg will never modify the root window. - -.TP -\fB POST_COMMAND=\fR\fI"string"\fR -This variable specifies a command that \fBbsetbg\fR will run after every -successful modification of the root window. - -.TP -\fB LOG_LAST_CMD=\fR\fI"boolean"\fR -If this variable is set, \fBbsetbg\fR will keep a logfile of the last two -successful commands. - -.TP -\fB LOGFILE=\fR\fI"string"\fR -This variable can specify the logfile to be used when $LOG_LAST_CMD is defined. -The default is ~/.bsetbg_last_cmd . - -.TP -As mentioned above, \fBbsetbg\fR will function perfectly for the majority of users without having a configuration file. Power users who want more control over \fBbsetbg\fR's behavior should run \fBbsetbg -g\fR and use the output to create a \fI~/.bsetbgrc\fR which may then be tweaked by hand. - -.SH EXAMPLES -In this example, bsetbg will set the image in centered mode: - - bsetbg -center foo.png - -An example of the \fB-exec\fR argument: - - bsetbg -exec xv -root -quit -rmode 5 -rbg rgb:2/2/2 \\ - -center foo.png - -An example in which bsetbg creates a configuration file using xv and qiv: - - bsetbg -g xv qiv > ~/.bsetbgrc - -.SH AUTHOR -The author of -.B bsetbg -may be reached at \fItmk@lordzork.com\fR. - -.SH SEE ALSO -\fIblackbox\fR(1), \fIbsetroot\fR(1), \fIqiv\fR(1), \fIxli\fR(1), \fIxv\fR(1), \fIdisplay\fR(1), -\fIwmsetbg\fR(1) |
