diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2011-07-03 16:27:26 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2011-07-03 16:27:26 +0200 |
commit | 5d9832d128e1fb4887c12b9170b976008ee14fcd (patch) | |
tree | a61bffda634e87a561283ae7a8bf32e2649d00b7 | |
parent | 65af3e3c88947ebfea2efde7fb65838151cb942c (diff) | |
parent | b0b9c21b752faab43241665f8fd12e10973e739c (diff) |
Merge remote-tracking branch 'origin/master' into obsd
Conflicts:
Makefile.am
-rw-r--r-- | Makefile.am | 22 | ||||
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | cpprules.in | 22 | ||||
-rw-r--r-- | man/Makefile.am | 20 | ||||
-rw-r--r-- | man/startx.man (renamed from startx.man) | 11 | ||||
-rw-r--r-- | man/xinit.man (renamed from xinit.man) | 0 |
6 files changed, 41 insertions, 50 deletions
diff --git a/Makefile.am b/Makefile.am index 1d1e4c6..2a648bb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,6 +20,10 @@ # PERFORMANCE OF THIS SOFTWARE. XINITDIR = $(datadir)/X11/xinit +SUBDIRS = man +if LAUNCHD +SUBDIRS += launchd +endif bin_PROGRAMS = xinit bin_SCRIPTS = startx @@ -31,14 +35,6 @@ xinit_LDADD = $(XINIT_LIBS) xinit_SOURCES = \ xinit.c -appmandir = $(APP_MAN_DIR) - -appman_PRE = \ - startx.man \ - xinit.man - -appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) - include $(top_srcdir)/cpprules.in xinitrcdir = $(XINITDIR) @@ -62,18 +58,12 @@ CPP_FILES_FLAGS = \ -D__bindir__="$(bindir)" \ -DBUNDLE_ID_PREFIX="$(bundleidprefix)" -if LAUNCHD -SUBDIRS = launchd -endif - -DIST_SUBDIRS = launchd - xinitrc_DATA = xinitrc MAINTAINERCLEANFILES = ChangeLog INSTALL -CLEANFILES = xinitrc startx $(appman_DATA) $(launchagents_DATA) +CLEANFILES = xinitrc startx $(launchagents_DATA) -EXTRA_DIST = xinitrc.cpp startx.cpp $(appman_PRE) \ +EXTRA_DIST = xinitrc.cpp startx.cpp \ autogen.sh .PHONY: ChangeLog INSTALL diff --git a/configure.ac b/configure.ac index c8439b2..3abd324 100644 --- a/configure.ac +++ b/configure.ac @@ -178,11 +178,10 @@ fi AC_SUBST(STARTX_COOKIE_FLAGS) # Additional substitutions in startx, xinitrc & man pages -ARCHMANDEFS="" SHELL_CMD="/bin/sh" XSERVERNAME="Xorg" XCONFIGFILE="xorg.conf" -XCONFIGFILEMAN='${XCONFIGFILE} (__filemansuffix__)' +XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})' case $host_os in cygwin*) XSERVERNAME="XWin" @@ -198,11 +197,11 @@ case $host_os in ;; *sco*) SHELL_CMD="/bin/ksh" - ARCHMANDEFS="-D__SCOMAN__" + SCOMAN=1 ;; esac AC_SUBST(SHELL_CMD) -AC_SUBST(ARCHMANDEFS) +AC_SUBST(SCOMAN) AC_SUBST(XSERVERNAME) AC_SUBST(XCONFIGFILE) AC_SUBST(XCONFIGFILEMAN) @@ -219,8 +218,9 @@ AC_SUBST(XINITDIR) AC_SUBST(WM) AC_SUBST(XCONSOLE) -AC_CONFIG_FILES([Makefile]) -AC_CONFIG_FILES([launchd/Makefile]) -AC_CONFIG_FILES([launchd/privileged_startx/Makefile]) -AC_CONFIG_FILES([launchd/user_startx/Makefile]) +AC_CONFIG_FILES([Makefile + man/Makefile + launchd/Makefile + launchd/privileged_startx/Makefile + launchd/user_startx/Makefile]) AC_OUTPUT diff --git a/cpprules.in b/cpprules.in index 18089de..92a987d 100644 --- a/cpprules.in +++ b/cpprules.in @@ -13,27 +13,7 @@ CPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \ -e '/XSLASHGLOB/s/XSLASHGLOB/\/\*/' \ -e '/\@\@$$/s/\@\@$$/\\/' -# Strings to replace in man pages -XORGRELSTRING = @PACKAGE_STRING@ - XORGMANNAME = X Version 11 - -MANDEFS = \ - -D__xorgversion__="\"$(XORGRELSTRING)\" \"$(XORGMANNAME)\"" \ - -D__appmansuffix__=$(APP_MAN_SUFFIX) \ - -D__filemansuffix__=$(FILE_MAN_SUFFIX) \ - -D__libmansuffix__=$(LIB_MAN_SUFFIX) \ - -D__miscmansuffix__=$(MISC_MAN_SUFFIX) \ - -D__XSERVERNAME__='$(XSERVERNAME)' \ - -D__XCONFIGFILE__='$(XCONFIGFILE)' \ - -D__XCONFIGFILEMAN__='$(XCONFIGFILEMAN)' \ - -D__xinitdir__=$(XINITDIR) \ - -D__bindir__=$(bindir) \ - -DSHELL_CMD=$(SHELL_CMD) $(ARCHMANDEFS) - -SUFFIXES = .$(APP_MAN_SUFFIX) .man .cpp +SUFFIXES = .cpp .cpp: $(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) $(CPP_FILES_FLAGS) < $< | $(CPP_SED_MAGIC) > $@ - -.man.$(APP_MAN_SUFFIX): - $(AM_V_GEN)$(RAWCPP) $(RAWCPPFLAGS) $(MANDEFS) $(EXTRAMANDEFS) < $< | $(CPP_SED_MAGIC) > $@ diff --git a/man/Makefile.am b/man/Makefile.am new file mode 100644 index 0000000..074bc36 --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,20 @@ + +appmandir = $(APP_MAN_DIR) +appman_PRE = startx.man xinit.man +appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) + +EXTRA_DIST = $(appman_PRE) +CLEANFILES = $(appman_DATA) +SUFFIXES = .$(APP_MAN_SUFFIX) .man + +MAN_SUBSTS+= -e 's|__XSERVERNAME__|$(XSERVERNAME)|g' \ + -e 's|__XCONFIGFILE__|$(XCONFIGFILE)|g' \ + -e 's|__XCONFIGFILEMAN__|$(XCONFIGFILEMAN)|g' \ + -e 's|__xinitdir__|$(XINITDIR)|g' \ + -e 's|__bindir__|$(bindir)|g' \ + -e 's|__libdir__|$(libdir)|g' \ + -e 's|__SCOMAN__|$(SCOMAN)|g' + +# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure +.man.$(APP_MAN_SUFFIX): + $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ diff --git a/startx.man b/man/startx.man index 641a631..0405be0 100644 --- a/startx.man +++ b/man/startx.man @@ -74,7 +74,7 @@ startx -- -dpi 100 .PP startx -- -layout Multihead .RE -#ifdef __SCOMAN__ +.if '__SCOMAN__'' .ig .PP To determine the client to run, .B startx @@ -90,7 +90,8 @@ looks for the following files, in order: .I __xinitdir__/xinitrc .RE .PP -#else +.. +.if !'x.__SCOMAN__'x.' .ig .PP To determine the client to run, .B startx @@ -102,7 +103,7 @@ the file in the .I xinit library directory. -#endif +.. If command line client options are given, they override this behavior and revert to the .BR xinit (__appmansuffix__) @@ -186,7 +187,7 @@ and .IR Xsecurity (__miscmansuffix__) manual pages for more information on X client/server authentication. .SH FILES -#ifdef __SCOMAN__ +.if '__SCOMAN__'' .ig .TP 25 .I $(HOME)/.startxrc Client to run. Typically a shell script which runs many programs in @@ -196,7 +197,7 @@ the background. Client to use if the user has no .I .startxrc file. -#endif +.. .TP 25 .I $(HOME)/.xinitrc Client to run. Typically a shell script which runs many programs in diff --git a/xinit.man b/man/xinit.man index 31b93aa..31b93aa 100644 --- a/xinit.man +++ b/man/xinit.man |