Ionic schrieb:
Hi again,

I noticed that some man pages (in $SRCDIR/misc/man1m/) are only copied to the prototype dir for later installing on SunOS/Solaris. However, I think that the soundoff and soundon man pages are also important for Linux, FreeBSD and other.

Thus I messed around a little bit with the build scripts and tried to integrate the man pages on man1/ on all systems except of Solaris. I do not know whether Linux, BSD and SCO do support man1m (multi char man pages?) or not - however, since the text files looked quite normal, I assumed one can also put them into man1/ directly on system not having man1m by default (I checked this on my Linux box only, somebody might have to check BSD and SCO though!)

However, I was not able to test the changes because HG is currently "somewhat" broken and make will fail on the first thing to compile (ossdevlinks.c) - but it WILL need some testing...

Anyways Hannu, please have a look at this.


-Ionic
------------------------------------------------------------------------

_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel


Brr, hold on. HG is compiling fine (I had not unset $CFLAGS, sorry), and a little error glitched into the patch.

This should work now (at least on Linux.)

Further testing is needed on *BSD and SCO.


Good night. :)


-Ionic
diff -r e24dfdbe3538 setup/FreeBSD/build.sh
--- a/setup/FreeBSD/build.sh	Sun May 18 01:06:51 2008 +0300
+++ b/setup/FreeBSD/build.sh	Sun May 18 21:49:55 2008 +0200
@@ -77,6 +77,12 @@ do
   fi
 done
 
+for i in $SRCDIR/misc/man1m/*.man
+do
+        N=`basename $i .man`
+        $SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $i > prototype/usr/share/man/man1/$N.1
+done
+
 rm -f prototype/usr/share/man/man8/ossdetect.8
 $SRCDIR/setup/txt2man -t "ossdetect" -v "User Commands" -s 8 os_cmd/FreeBSD/ossdetect/ossdetect.man > prototype/usr/share/man/man8/ossdetect.8
 echo done ossdetect
diff -r e24dfdbe3538 setup/Linux/build.sh
--- a/setup/Linux/build.sh	Sun May 18 01:06:51 2008 +0300
+++ b/setup/Linux/build.sh	Sun May 18 21:49:55 2008 +0200
@@ -145,6 +145,12 @@ do
 	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS Devices" -s 7 $n |gzip > prototype/usr/share/man/man7/$N.7.gz
 done
 
+for n in $SRCDIR/misc/man1m/*.man
+do
+	N=`basename $n .man`
+	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $n |gzip > prototype/usr/share/man/man1/$N.1.gz
+done
+
 if ! cp lib/libOSSlib/libOSSlib.so lib/libsalsa/.libs/libsalsa.so.2.0.0 prototype/usr/lib/oss/lib
 then
   echo Warning: No libsalsa library compiled
diff -r e24dfdbe3538 setup/Linux24/build.sh
--- a/setup/Linux24/build.sh	Sun May 18 01:06:51 2008 +0300
+++ b/setup/Linux24/build.sh	Sun May 18 21:49:55 2008 +0200
@@ -112,6 +112,12 @@ do
 	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS Devices" -s 7 $n |gzip > prototype/usr/share/man/man7/$N.7.gz
 done
 
+for n in $SRCDIR/misc/man1m/*.man
+do
+	N=`basename $n .man`
+	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $n |gzip > prototype/usr/share/man/man1/$N.1.gz
+done
+
 if ! cp lib/libOSSlib/libOSSlib.so lib/libsalsa/.libs/libsalsa.so.2.0.0 prototype/usr/lib/oss/lib
 then
   echo Warning: No libsalsa library compiled
diff -r e24dfdbe3538 setup/SCO_SV/build.sh
--- a/setup/SCO_SV/build.sh	Sun May 18 01:06:51 2008 +0300
+++ b/setup/SCO_SV/build.sh	Sun May 18 21:49:55 2008 +0200
@@ -127,6 +127,12 @@ do
   fi
 done
 
+for i in $SRCDIR/misc/man1m/*.man
+do
+	N=`basename $i .man`
+	$SRCDIR/setup/txt2man -t "$CMD" -v "OSS System Administration Commands" -s 1 $i > prototype/usr/man/man1/$N.1
+done
+
 rm -f prototype/usr/man/man8/ossdetect.8
 $TXT2MAN -t "ossdetect" -v "User Commands" -s 8 os_cmd/SCO_SV/ossdetect/ossdetect.man > prototype/usr/man/man8/ossdetect.8
 echo done ossdetect
_______________________________________________
oss-devel mailing list
oss-devel@mailman.opensound.com
http://mailman.opensound.com/mailman/listinfo/oss-devel

Reply via email to