comparison lib-src/update-autoloads.sh @ 333:4f79e16b1112 r21-0-64

Import from CVS: tag r21-0-64
author cvs
date Mon, 13 Aug 2007 10:49:50 +0200
parents 7df0dd720c89
children cc15677e0335
comparison
equal deleted inserted replaced
332:bb75ebac9531 333:4f79e16b1112
41 test -z "$EMACS" && EMACS="./src/xemacs" 41 test -z "$EMACS" && EMACS="./src/xemacs"
42 echo " (using $EMACS)" 42 echo " (using $EMACS)"
43 43
44 export EMACS 44 export EMACS
45 45
46 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS` 46 EMACS_DIR=`cd \`dirname $EMACS\` && pwd`;
47 CANON_PWD=`pwd`
48 # Account for various system automounter configurations
49 if test -d "/net"; then
50 if test -d "/tmp_mnt/net"; then tdir="/tmp_mnt/net"; else tdir="/tmp_mnt"; fi
51 EMACS_DIR=`echo "$EMACS_DIR" | \
52 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
53 CANON_PWD=`echo "$CANON_PWD" | \
54 sed -e "s|^${tdir}/|/net/|" -e "s|^/a/|/net/|" -e "s|^/amd/|/net/|"`
55 fi
56 REAL="$EMACS_DIR/`basename $EMACS`"
47 57
48 echo "Rebuilding autoloads in `pwd|sed 's|^/tmp_mnt||'`" 58 echo "Rebuilding autoloads in $CANON_PWD"
49 echo " with $REAL..." 59 echo " with $REAL..."
50 60
51 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then 61 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then
52 echon() 62 echon()
53 { 63 {
54 /bin/echo $* '\c' 64 /bin/echo $* '\c'
55 } 65 }
56 else 66 else
57 echon() 67 echon()
58 { 68 {