[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: installing that man page

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2001-10-19 13:20:57 CEST

On 16 Oct 2001 kfogel@collab.net wrote:

> If you'd like to tackle that too, then, that would be nifty. (At least
> the info pages could be installed in an info tree somewhere...).
>
> See? Offer an inch and we want a mile. :)

I'm not sure I'm man enough to deliver that mile, but I'll give it shot!

I include my suggested patch below, to allow some discussions before I go
ahead and apply it. This would make 'install-man' install man pages and
'install-info' install the info files.

Comments are welcome.

Index: ./Makefile.in
===================================================================
--- ./.svn/text-base/Makefile.in Wed Oct 10 10:13:47 2001
+++ ./Makefile.in Fri Oct 19 13:14:43 2001
@@ -25,6 +25,9 @@
 bindir = @bindir@
 fs_bindir=@bindir@
 includedir = @includedir@
+mandir = @mandir@
+srcdir = @srcdir@
+infodir = @infodir@

 ### should search for these...
 MAKEINFO = makeinfo
@@ -72,6 +75,7 @@
 INSTALL_INCLUDE = $(INSTALL) -m 644
 INSTALL_MOD_SHARED = @APXS@ -i -a
 INSTALL_MOD_STATIC = $(INSTALL) -m 644
+INSTALL_DATA = $(INSTALL) -m 644

 PYTHON = @PYTHON@

@@ -233,3 +237,39 @@

 .dvi.pdf:
         $(DVIPDF) $< $@
+
+install-man: install-man1
+
+man1pages = subversion/clients/cmdline/man/svn.1
+man1dir = $mandir/man1
+install-man1: $(man1pages)
+ $(MKDIR) $(DESTDIR)$(man1dir)
+ @list='$(man1pages)'; \
+ for i in $$list; do \
+ if test -f $$srcdir/$$i; then file=$$srcdir/$$i; \
+ else file=$$i; fi; \
+ ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ inst=`echo $$inst | sed -e 's/^.*\///'`; \
+ inst=`echo $$inst`.$$ext; \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
+ $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
+ done
+
+infopages = doc/user/manual/svn-manual.info \
+ doc/user/svn_for_cvs_users/svn_for_cvs_users.info \
+ doc/programmer/design/svn-design.info \
+ doc/programmer/design/svn-design.info-1 \
+ doc/programmer/design/svn-design.info-2 \
+ doc/programmer/design/svn-design.info-3
+
+install-info: $(infopages)
+ $(MKDIR) $(DESTDIR)$(infodir)
+ @list='$(infopages)'; \
+ for i in $$list; do \
+ if test -f $$srcdir/$$i; then file=$$srcdir/$$i; \
+ else file=$$i; fi; \
+ inst=`echo $$file | sed -e 's/^.*\///'`; \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$inst"; \
+ $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$inst; \
+ done
Index: ./configure.in
===================================================================
--- ./.svn/text-base/configure.in Thu Oct 11 15:45:04 2001
+++ ./configure.in Fri Oct 19 11:09:00 2001
@@ -166,7 +166,7 @@
                     $SVN_FS_WANT_DB_PATCH)

 # Only add *_APACHE_RULE if we also have db, since mod_dav_svn depends on it.
-INSTALL_RULES="install-lib install-bin install-include"
+INSTALL_RULES="install-lib install-bin install-include install-man"
 BUILD_RULES="lib bin test"
 if test "$svn_lib_berkeley_db" = "yes"; then
   BUILD_RULES="lib fs-lib bin fs-bin $BUILD_APACHE_RULE test fs-test"

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:45 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.