OSSP CVS Repository

ossp - Check-in [2022]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2022
Date: 2002-Mar-15 12:32:59 (local)
2002-Mar-15 11:32:59 (UTC)
User:rse
Branch:
Comment: add manual page stuff
Tickets:
Inspections:
Files:
ossp-pkg/val/Makefile.in      1.4 -> 1.5     31 inserted, 1 deleted
ossp-pkg/val/devtool.conf      1.5 -> 1.6     1 inserted, 1 deleted
ossp-pkg/val/val-config.pod      added-> 1.1

ossp-pkg/val/Makefile.in 1.4 -> 1.5

--- Makefile.in  2002/03/13 18:35:58     1.4
+++ Makefile.in  2002/03/15 11:32:59     1.5
@@ -55,10 +55,22 @@
 TST_NAME    = val_test
 TST_OBJS    = val_test.o
 
+MAN_NAME    = val-config.1 val.3
+
+#   helper macro for generating a Unix manual page
+_MANPAGE = \
+    V1=`$(SHTOOL) version -ltxt -dshort VERSION`; \
+    V2=`$(SHTOOL) version -ltxt -dlong VERSION`; \
+    D=`$(SHTOOL) version -ltxt -dlong VERSION |\
+       sed -e 's;.*(;;' -e 's;).*;;'`; \
+    $(POD2MAN) --section=$${SEC} --center="$${ONELINE}" \
+               --release="$$D" --date="$${NAME} $$V1" $(S)$${BASENAME}.pod |\
+    sed -e "s;VAR_VERSION_STR;$$V2;" >$${BASENAME}.$${SEC}
+
 .SUFFIXES:
 .SUFFIXES: .c .o .lo
 
-all: $(LIB_NAME) $(TST_NAME)
+all: $(LIB_NAME) $(TST_NAME) $(MAN_NAME)
 
 .c.o:
         $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
@@ -76,6 +88,15 @@
 $(TST_NAME): $(TST_OBJS) $(LIB_NAME)
         @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS)
 
+val-config.1: val-config.pod VERSION
+        BASENAME="val-config"; SEC=1; \
+        NAME="VAL"; ONELINE="Value Access"; \
+        $(_MANPAGE)
+val.3: val.pod VERSION
+        BASENAME="val"; SEC=3; \
+        NAME="VAL"; ONELINE="Value Access"; \
+        $(_MANPAGE)
+
 check: $(TST_NAME)
         @$(LIBTOOL) --mode=execute ./$(TST_NAME)
 
@@ -84,14 +105,22 @@
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
+        $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man1
+        $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man3
         $(SHTOOL) install -c -m 755 val-config $(DESTDIR)$(bindir)/
         $(SHTOOL) install -c -m 644 val.h $(DESTDIR)$(includedir)/
         @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libval.la $(DESTDIR)$(libdir)/
+        $(SHTOOL) install -c -m 644 var-config.1 $(DESTDIR)$(mandir)/man1/
+        $(SHTOOL) install -c -m 644 var.3 $(DESTDIR)$(mandir)/man3/
 
 uninstall:
+        -$(RM) $(DESTDIR)$(mandir)/man1/val-config.1
+        -$(RM) $(DESTDIR)$(mandir)/man3/val.3
         @$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libval.la
         -$(RM) $(DESTDIR)$(includedir)/val.h
         -$(RM) $(DESTDIR)$(bindir)/val-config
+        -$(RMDIR) $(DESTDIR)$(mandir)/man3 >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(libdir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(includedir) >/dev/null 2>&1 || $(TRUE)
         -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
@@ -112,4 +141,5 @@
         -$(RM) configure config.h.in
         -$(RM) shtool
         -$(RM) ltmain.sh libtool.m4 config.guess config.sub
+        -$(RM) val-config.1 val.3
 


ossp-pkg/val/devtool.conf 1.5 -> 1.6

--- devtool.conf 2002/03/13 18:19:38     1.5
+++ devtool.conf 2002/03/15 11:32:59     1.6
@@ -31,5 +31,5 @@
     ./shtool fixperm -v .
     V=`./shtool version -l txt -d short VERSION`
     ./shtool tarball -o val-${V}.tar.gz -d val-${V} -u ossp -g ossp \
-                     -e 'CVS,\.cvsignore,\.[ao],^\.,devtool.conf' -c 'gzip --best' .
+                     -e 'CVS,\.cvsignore,\.[ao],^\.,devtool*' -c 'gzip --best' .
 


ossp-pkg/val/val-config.pod -> 1.1

*** /dev/null    Sat Nov 23 01:16:19 2024
--- -    Sat Nov 23 01:16:32 2024
***************
*** 0 ****
--- 1,168 ----
+ ##
+ ##  OSSP val -- Value Access
+ ##  Copyright (c) 2001-2002 Ralf S. Engelschall <rse@engelschall.com>
+ ##  Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/)
+ ##  Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)
+ ##
+ ##  This file is part of OSSP val, a value access
+ ##  library which can be found at http://www.ossp.org/pkg/lib/val/.
+ ##
+ ##  Permission to use, copy, modify, and distribute this software for
+ ##  any purpose with or without fee is hereby granted, provided that
+ ##  the above copyright notice and this permission notice appear in all
+ ##  copies.
+ ##
+ ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ##  SUCH DAMAGE.
+ ##
+ ##  val-config.pod: library build utility manual page
+ ##
+ 
+ =pod
+ 
+ =head1 NAME
+ 
+ B<val-config> - OSSP val build utility
+ 
+ =head1 VERSION
+ 
+ OSSP val VAL_VERSION_STR
+ 
+ =head1 SYNOPSIS
+ 
+ B<val-config>
+ [B<--help>]
+ [B<--version>]
+ [B<--all>]
+ [B<--prefix>]
+ [B<--exec-prefix>]
+ [B<--bindir>]
+ [B<--libdir>]
+ [B<--includedir>]
+ [B<--mandir>]
+ [B<--datadir>]
+ [B<--acdir>]
+ [B<--cflags>]
+ [B<--ldflags>]
+ [B<--libs>]
+ [B<--libs++>]
+ 
+ =head1 DESCRIPTION
+ 
+ The B<val-config> program is a little helper utility for easy configuring and
+ building applications based on the val(3) library.  It can be used to query the
+ C compiler and linker flags which are required to correctly compile and link
+ the application against the val(3) library.
+ 
+ =head1 OPTIONS
+ 
+ B<val-config> accepts the following options:
+ 
+ =over 4
+ 
+ =item B<--help>
+ 
+ Prints the short usage information.
+ 
+ =item B<--version>
+ 
+ Prints the version number and date of the installed val(3) library.
+ 
+ =item B<--all>
+ 
+ Forces the output of all flags, that is, including extra flags which are not
+ B<VAL> specific.
+ 
+ =item B<--prefix>
+ 
+ Prints the installation prefix of architecture independent files
+ 
+ =item B<--exec-prefix>
+ 
+ Prints the installation prefix of architecture dependent files.
+ 
+ =item B<--bindir>
+ 
+ Prints the installation directory of binaries.
+ 
+ =item B<--libdir>
+ 
+ Prints the installation directory of libraries.
+ 
+ =item B<--includedir>
+ 
+ Prints the installation directory of include headers.
+ 
+ =item B<--mandir>
+ 
+ Prints the installation directory of manual pages.
+ 
+ =item B<--datadir>
+ 
+ Prints the installation directory of shared data.
+ 
+ =item B<--acdir>
+ 
+ Prints the installation directory of B<autoconf> data.
+ 
+ =item B<--cflags>
+ 
+ Prints the C compiler flags which are needed to compile the val(3)-based
+ application. The output is usually added to the C<CFLAGS> variable of the
+ applications C<Makefile>.
+ 
+ =item B<--ldflags>
+ 
+ Prints the linker flags (C<-L>) which are needed to link the application with
+ the val(3) library. The output is usually added to the C<LDFLAGS> variable of
+ the applications C<Makefile>.
+ 
+ =item B<--libs>
+ 
+ Prints the library flags (C<-l>) which are needed to link the application with
+ the C val(3) library. The output is usually added to the C<LIBS> variable of the
+ applications C<Makefile>.
+ 
+ =item B<--libs++>
+ 
+ Prints the library flags (C<-l>) which are needed to link the
+ application with the C++ val(3) library. The output is usually added to
+ the C<LIBS> variable of the applications C<Makefile>.
+ 
+ =back
+ 
+ =head1 EXAMPLE
+ 
+  CC      = cc
+  CFLAGS  = -O `val-config --cflags`
+  LDFLAGS = `val-config --ldflags`
+  LIBS    = -lm `val-config --libs`
+ 
+  all: foo
+  foo: foo.o
+      $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
+  foo.o: foo.c
+      $(CC) $(CFLAGS) -c foo.c
+ 
+ =head1 SEE ALSO
+ 
+ val(3), cc(1).
+ 
+ =head1 AUTHOR
+ 
+  Ralf S. Engelschall
+  rse@engelschall.com
+  www.engelschall.com
+ 
+ =cut
+ 

CVSTrac 2.0.1