comparison lib-src/update-autoloads.sh @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 4f79e16b1112
children 1f50e6fe4f3f
comparison
equal deleted inserted replaced
370:bd866891f083 371:cc15677e0335
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 EMACS_DIR=`cd \`dirname $EMACS\` && pwd`; 46 REAL=`cd \`dirname $EMACS\` ; pwd | sed 's|^/tmp_mnt||'`/`basename $EMACS`
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`"
57 47
58 echo "Rebuilding autoloads in $CANON_PWD" 48 echo "Rebuilding autoloads in `pwd|sed 's|^/tmp_mnt||'`"
59 echo " with $REAL..." 49 echo " with $REAL..."
60 50
61 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then 51 if [ "`uname -r | sed 's/\(.\).*/\1/'`" -gt 4 ]; then
62 echon() 52 echon()
63 { 53 {
64 /bin/echo $* '\c' 54 /bin/echo $* '\c'
65 } 55 }
66 else 56 else
67 echon() 57 echon()
68 { 58 {