annotate etc/aliases.ksh @ 342:b036ce23deaa

Added tag r21-1-0 for changeset 2538ab34df21
author cvs
date Mon, 13 Aug 2007 10:52:06 +0200
parents 83b3d10dcba9
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
247
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
1 ### aliases.ksh --- Useful shortcuts for XEmacs source hackers
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
2
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
3 # Copyright (C) 1998 Free Software Foundation, Inc.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
4
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
5 # Author: Steve Baur
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
6 # Keywords: internal
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
7
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
8 # This file is part of XEmacs.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
9
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
10 # XEmacs is free software; you can redistribute it and/or modify it
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
11 # under the terms of the GNU General Public License as published by
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
12 # the Free Software Foundation; either version 2, or (at your option)
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
13 # any later version.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
14
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
15 # XEmacs is distributed in the hope that it will be useful, but
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
18 # General Public License for more details.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
19
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
20 # You should have received a copy of the GNU General Public License
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
21 # along with XEmacs; see the file COPYING. If not, write to
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
22 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
23 # Boston, MA 02111-1307, USA.
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
24
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
25 # Shortcuts for sh-derived Unix shells (ksh, zsh, bash)
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
26
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
27 # From Steve Baur <steve@altair.xemacs.org>
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
28 # Run temacs as XEmacs
247
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
29 function runtemacs
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
30 {
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
31 if [ ! -x temacs ]; then
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
32 echo "Must be in temacs source directory to run temacs."
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
33 return 1;
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
34 fi
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
35
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
36 ./temacs -batch -l loadup.el run-temacs "$@"
e70b3a057e12 Import from CVS: tag r20-5b22
cvs
parents:
diff changeset
37 }
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
38
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
39 # From Adrian Aichner <aichner@ecf.teradyne.com>
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
40 # Convenience function for running build-report
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
41 function mak
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
42 {
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
43 make "$@" 2>&1 | tee beta.err
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
44 }
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
45 # export -f mak
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
46
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
47 # From Karl Hegbloom <karlheg@bittersweet.inetarena.com>
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
48 # igrep from the shell command line
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
49 function listargs
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
50 {
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
51 for arg in "$@"; do
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
52 echo " \"$arg\""
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
53 done
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
54 }
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
55
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
56 function igrep
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
57 {
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
58 exp="$1"; shift
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
59 gnudoit -q "(igrep nil \"$exp\" '($(listargs "$@")))"
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 247
diff changeset
60 }