diff src/mk-pkg-add @ 5796:20f4bd627a74

[project @ 2006-05-09 02:04:54 by jwe]
author jwe
date Tue, 09 May 2006 02:04:55 +0000
parents d090d39bb82c
children 4e6be3c306f1
line wrap: on
line diff
--- a/src/mk-pkg-add
+++ b/src/mk-pkg-add
@@ -8,8 +8,7 @@
     ## Compute and print the autoloads.
   
     base=`basename $f | $SED 's/\.df$//'`
-    fcns=`grep '^ *XDEFUN_DLD_INTERNAL' $f |\
-	  $SED -e 's/XDEFUN_DLD_INTERNAL *( *//' -e 's/ *,.*$//' |\
+    fcns=`$SED -n -e 's/XDEFUN\(X\|\)_DLD_INTERNAL *( *\("\|\)\([^", ]*\)[", ].*$/\3/p' $f | \
 	  sort -u`
     if [ -n "$fcns" ]; then
       for n in $fcns; do