]> sourceware.org Git - systemtap.git/commitdiff
Remove duplicate entries for generated tapset cross references
authorFelix Lu <flu@redhat.com>
Fri, 11 Mar 2016 15:49:46 +0000 (10:49 -0500)
committerFelix Lu <flu@redhat.com>
Fri, 11 Mar 2016 15:49:46 +0000 (10:49 -0500)
doc/SystemTap_Tapset_Reference/manpager

index e09cfcc295f84d263ca4e7d3f1b6599eca9dfb94..6a905a2bfd1382afc9d67b0fea15feae62dcd64d 100755 (executable)
@@ -92,7 +92,7 @@ done
 for i in `cat ../manpageus` ; do
   echo "" >> $i.footer
   echo ".SH SEE ALSO" >> $i.footer
-  for j in `cat $i.funcnames` ; do
+  for j in `cat $i.funcnames | uniq` ; do
     echo ".BR" >> $i.footer
     echo ".IR \\%function::"$j" (3stap)," >> $i.footer
   done
@@ -111,7 +111,7 @@ done
 
 # add cross reference to enclosed functions and probes
 for i in `cat ../manpageus` ; do
-  for j in `cat $i.funcnames` ; do
+  for j in `cat $i.funcnames | uniq` ; do
     echo ".SH SEE ALSO\n " >> ../man3/function::$j.3stap
     echo ".IR tapset::$i (3stap)" >> ../man3/function::$j.3stap
   done
This page took 0.02714 seconds and 5 git commands to generate.