netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer ./Jamfile ./ChangeLog mk/jam/install....


From: Matthias Braun
Subject: [netPanzer-CVS] netpanzer ./Jamfile ./ChangeLog mk/jam/install....
Date: Wed, 05 Nov 2003 04:33:50 -0500

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Matthias Braun <address@hidden> 03/11/05 04:33:50

Modified files:
        .              : Jamfile ChangeLog 
        mk/jam         : install.jam 
Added files:
        docs           : Jamfile netpanzer.6 

Log message:
        added manpage, contributed by Bartosz Fenski <address@hidden>

Patches:
Index: netpanzer/ChangeLog
diff -u netpanzer/ChangeLog:1.20 netpanzer/ChangeLog:1.21
--- netpanzer/ChangeLog:1.20    Sat Oct 25 11:26:05 2003
+++ netpanzer/ChangeLog Wed Nov  5 04:33:50 2003
@@ -1,3 +1,6 @@
+05-Nov-2003 by Matthias Braun
+-added manpage contributed by Bartosz Fesnky <address@hidden>
+
 25-Oct-2003 by Matthias Braun
 -removed support for .til files and converted them to .bmp
 -tried to make .pak and .bmp loader endian safe
Index: netpanzer/Jamfile
diff -u netpanzer/Jamfile:1.3 netpanzer/Jamfile:1.4
--- netpanzer/Jamfile:1.3       Sat Oct 11 09:55:40 2003
+++ netpanzer/Jamfile   Wed Nov  5 04:33:50 2003
@@ -2,6 +2,7 @@
 
 # Decend into subdirs
 SubInclude TOP src ;
+SubInclude TOP docs ;
 SubInclude TOP pics ;
 SubInclude TOP maps ;
 SubInclude TOP sound ;
Index: netpanzer/mk/jam/install.jam
diff -u netpanzer/mk/jam/install.jam:1.1 netpanzer/mk/jam/install.jam:1.2
--- netpanzer/mk/jam/install.jam:1.1    Tue Sep 23 21:26:18 2003
+++ netpanzer/mk/jam/install.jam        Wed Nov  5 04:33:50 2003
@@ -82,6 +82,49 @@
   }
 }
 
+##  InstallMan manfiles
+##    Installs man files
+rule InstallMan
+{
+  local target i ;
+  
+  for i in $(<) {
+    local dir ;
+    switch $(i)
+    {
+      case *.1 :
+        dir = [ FDirName $(mandir) man1 ] ;
+      case *.2 :
+        dir = [ FDirName $(mandir) man2 ] ;
+      case *.3 :
+        dir = [ FDirName $(mandir) man3 ] ;
+      case *.4 :
+        dir = [ FDirName $(mandir) man4 ] ;
+      case *.5 :
+        dir = [ FDirName $(mandir) man5 ] ;
+      case *.6 :
+        dir = [ FDirName $(mandir) man6 ] ;
+      case *.7 :
+        dir = [ FDirName $(mandir) man7 ] ;
+      case *.8 :
+        dir = [ FDirName $(mandir) man8 ] ;
+      case *.9 :
+        dir = [ FDirName $(mandir) man9 ] ;
+      case * :
+        echo "WARNING: manfile has no *.[0-9] ending." ;
+    }
+    if $(dir)
+    {
+      LOCATE on $(i) = $(SUBDIR) ;
+      target = $(i:R=$(dir):G=install) ;
+
+      Install $(target) : $(i) ;
+      MODE on $(target) = $(FILEMODE) ;
+      Depends install_man : $(target) ;
+    }
+  }
+}
+
 ##  Install Targetname : sourcename : directory
 ##    Install a file. The filemode of the file has to be specified with the
 ##    MODE variable for the target.
@@ -100,7 +143,7 @@
 #----------------------------------------------------------------------------
 
 INSTALLTARGETS = install_apps install_libs install_headers
-                install_shellscripts ;
+                install_shellscripts install_man ;
 
 Always install $(INSTALLTARGETS) ;
 NotFile install $(INSTALLTARGETS) ;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]