[Pkg-erlang-commits] r1440 - in erlang/trunk/debian: . scripts

sgolovan at alioth.debian.org sgolovan at alioth.debian.org
Thu May 31 10:53:25 UTC 2012


Author: sgolovan
Date: 2012-05-31 10:53:25 +0000 (Thu, 31 May 2012)
New Revision: 1440

Modified:
   erlang/trunk/debian/changelog
   erlang/trunk/debian/rules
   erlang/trunk/debian/scripts/fixmanpages
Log:
[erlang]
  * Fixed a few errors in manpages and added missing whatis entries.


Modified: erlang/trunk/debian/changelog
===================================================================
--- erlang/trunk/debian/changelog	2012-05-30 19:22:54 UTC (rev 1439)
+++ erlang/trunk/debian/changelog	2012-05-31 10:53:25 UTC (rev 1440)
@@ -5,8 +5,9 @@
     flavor. This helps to use M-x describe-function for erlang mode in Emacs
     (closes: #670345).
   * Removed stale symlink to /usr/lib/erlang/usr/include/driver.h.
+  * Fixed a few errors in manpages and added missing whatis entries.
 
- -- Sergei Golovan <sgolovan at debian.org>  Wed, 30 May 2012 23:20:28 +0400
+ -- Sergei Golovan <sgolovan at debian.org>  Thu, 31 May 2012 11:02:12 +0400
 
 erlang (1:15.b.1-dfsg-1) unstable; urgency=low
 

Modified: erlang/trunk/debian/rules
===================================================================
--- erlang/trunk/debian/rules	2012-05-30 19:22:54 UTC (rev 1439)
+++ erlang/trunk/debian/rules	2012-05-31 10:53:25 UTC (rev 1440)
@@ -310,7 +310,7 @@
 	    install $$m/doc/man1/*.1 $(MAN_DIR)/man1 ; \
 	done
 	#
-	sh debian/scripts/fixmanpages $(MAN_DIR)
+	sh debian/scripts/fixmanpages $(MAN_DIR) 1
 	#
 	touch manpages-stamp
 
@@ -343,7 +343,7 @@
 	PATH=$(ROOT_DIR)/bin:$$PATH $(MAKE) docs
 	$(MAKE) DESTDIR=$(ROOT_DIR)/debian/erlang-docs install-docs
 	#
-	sh debian/scripts/fixmanpages $(MAN_DIR)
+	sh debian/scripts/fixmanpages $(MAN_DIR) 2
 	#
 	(cd $(ROOT_DIR)/debian/erlang-docs/usr/lib/erlang/lib ; \
 	 perl $(ROOT_DIR)/debian/scripts/genindex >index.html ; \

Modified: erlang/trunk/debian/scripts/fixmanpages
===================================================================
--- erlang/trunk/debian/scripts/fixmanpages	2012-05-30 19:22:54 UTC (rev 1439)
+++ erlang/trunk/debian/scripts/fixmanpages	2012-05-31 10:53:25 UTC (rev 1440)
@@ -1,6 +1,7 @@
 #! /bin/sh
 
 DIR=$1
+PASS=$2
 
 cp $DIR/man3/dialyzer.3 $DIR/man1/dialyzer.1
 mv $DIR/man1/start.1 $DIR/man1/start_embedded.1
@@ -19,8 +20,15 @@
        -e's/^\.TH start 1/.TH start_embedded 1/' \
     $DIR/man1/start_embedded.1
 
-for f in $DIR/*/*.[1-6] ; do
+for f in $DIR/*/*.[1-7] ; do
     sed -i -e's/^\(\.TH .*\) 3 /\1 3erl /' \
+	   -e"s/^'Erlang'/\\\\\&'Erlang'/" \
+	   -e"s/^'super\./\\\\\&'super./" \
+	   -e"s/^'renat\./\\\\\&'renat./" \
+	   -e"s/^'grouse\./\\\\\&'grouse./" \
+	   -e"s/^'gauffin1\./\\\\\&'gauffin1./" \
+	   -e's/^\.\./\\\&../' \
+	   -e"s/^'->/\\\\\&'->/" \
 	   -e's/\([^[:space:]]\)(3)/\1(3erl)/g' \
 	   -e's/\([^[:space:]]\)(4)/\1(5)/g' \
 	   -e's/\([^[:space:]]\)(6)/\1(7)/g' \
@@ -30,3 +38,46 @@
 for f in $DIR/*/*.3 ; do \
     mv $f ${f}erl ; \
 done
+
+if [ $PASS = 1 ] ; then
+    exit 0
+fi
+
+N1=INET-ADDRESS-MIB
+N2=OTP-SNMPEA-MIB
+N3=RFC1213-MIB
+N4=SNMP-COMMUNITY-MIB
+N5=SNMP-FRAMEWORK-MIB
+N6=SNMP-MPD-MIB
+N7=SNMP-NOTIFICATION-MIB
+N8=SNMP-TARGET-MIB
+N9=SNMP-USER-BASED-SM-MIB
+N10=SNMP-USM-AES-MIB
+N11=SNMPv2-MIB
+N12=SNMPv2-TM
+N13=SNMP-VIEW-BASED-ACM-MIB
+N14=STANDARD-MIB
+N15=TRANSPORT-ADDRESS-MIB
+MIB='The Erlang/OTP MIB module'
+D1="$MIB for textual conventions for representing Internet addresses"
+D2="$MIB for the SNMPEA component in OTP"
+D3="$MIB for RFC-1213"
+D4="$MIB for supporting coexistence between SNMPv1, SNMPv2, and SNMPv3"
+D5="$MIB for textual conventions used in the SNMP management architecture"
+D6="$MIB for message processing and dispatching"
+D7="$MIB for mechanisms to remotely configure the parameters for the generation of notifications"
+D8="$MIB for mechanisms to remotely configure the parameters for the generation of SNMP messages"
+D9="$MIB for the SNMP user-based security model"
+D10="$MIB for the use of AES by SNMP's user-based security model"
+D11="$MIB for SNMP entities"
+D12="$MIB for SNMPv2 Transport Mappings"
+D13="$MIB for the view-based access control model for SNMP"
+D14="$MIB for SNMP standard datatypes"
+D15="$MIB for commonly used transport address definitions"
+
+for i in `seq 1 15` ; do
+    eval sed -i -e\'2i.SH NAME\' \
+		-e\"2i\$N$i \\\\\\- \$D$i\" \
+		-e\'2i.SH DESCRIPTION\' \
+	     \$DIR/*/\$N$i.7
+done




More information about the Pkg-erlang-commits mailing list