This commit is contained in:
commit
47aee91ef4
396 changed files with 32003 additions and 0 deletions
BIN
tools/cygwin/a.exe
Normal file
BIN
tools/cygwin/a.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/addr2line.exe
Normal file
BIN
tools/cygwin/addr2line.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/ar.exe
Normal file
BIN
tools/cygwin/ar.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/as.exe
Normal file
BIN
tools/cygwin/as.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/awk.exe
Normal file
BIN
tools/cygwin/awk.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/basename.exe
Normal file
BIN
tools/cygwin/basename.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/bash.exe
Normal file
BIN
tools/cygwin/bash.exe
Normal file
Binary file not shown.
143
tools/cygwin/bashbug
Normal file
143
tools/cygwin/bashbug
Normal file
|
@ -0,0 +1,143 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# bashbug - create a bug report and mail it to the bug address
|
||||
#
|
||||
# The bug address depends on the release status of the shell. Versions
|
||||
# with status `alpha' or `beta' mail bug reports to chet@po.cwru.edu.
|
||||
# Other versions send mail to bug-bash@gnu.org.
|
||||
#
|
||||
# configuration section:
|
||||
# these variables are filled in by the make target in cpp-Makefile
|
||||
#
|
||||
MACHINE="i586"
|
||||
OS="cygwin32"
|
||||
CC="i586-cygwin32-gcc"
|
||||
CFLAGS=" -DPROGRAM='bash.exe' -DHOSTTYPE='i586' -DOSTYPE='cygwin32' -DMACHTYPE='i586-pc-cygwin32' -DCROSS_COMPILING -DSHELL -DHAVE_CONFIG_H -I. -I/home/noer/src/b20/user-tools/devo/bash -I/home/noer/src/b20/user-tools/devo/bash/lib -O2"
|
||||
RELEASE="2.02"
|
||||
PATCHLEVEL="1"
|
||||
RELSTATUS="release"
|
||||
MACHTYPE="i586-pc-cygwin32"
|
||||
|
||||
PATH=/bin:/usr/bin:/usr/local/bin:$PATH
|
||||
export PATH
|
||||
|
||||
TEMP=/tmp/bbug.$$
|
||||
|
||||
# Figure out how to echo a string without a trailing newline
|
||||
N=`echo 'hi there\c'`
|
||||
case "$N" in
|
||||
*c) n=-n c= ;;
|
||||
*) n= c='\c' ;;
|
||||
esac
|
||||
|
||||
BASHTESTERS="bash-testers@po.cwru.edu"
|
||||
|
||||
case "$RELSTATUS" in
|
||||
alpha*|beta*) BUGBASH=chet@po.cwru.edu ;;
|
||||
*) BUGBASH=bug-bash@gnu.org ;;
|
||||
esac
|
||||
|
||||
case "$RELSTATUS" in
|
||||
alpha*|beta*) echo "$0: This is a testing release. Would you like your bug report"
|
||||
echo "$0: to be sent to the bash-testers mailing list?"
|
||||
echo $n "$0: Send to bash-testers? $c"
|
||||
read ans
|
||||
case "$ans" in
|
||||
y*|Y*) BUGBASH="${BUGBASH},${BASHTESTERS}" ;;
|
||||
esac ;;
|
||||
esac
|
||||
|
||||
BUGADDR="${1-$BUGBASH}"
|
||||
|
||||
: ${EDITOR=emacs}
|
||||
|
||||
: ${USER=${LOGNAME-`whoami`}}
|
||||
|
||||
trap 'rm -f $TEMP $TEMP.x; exit 1' 1 2 3 13 15
|
||||
trap 'rm -f $TEMP $TEMP.x' 0
|
||||
|
||||
UN=
|
||||
if (uname) >/dev/null 2>&1; then
|
||||
UN=`uname -a`
|
||||
fi
|
||||
|
||||
if [ -f /usr/lib/sendmail ] ; then
|
||||
RMAIL="/usr/lib/sendmail"
|
||||
elif [ -f /usr/sbin/sendmail ] ; then
|
||||
RMAIL="/usr/sbin/sendmail"
|
||||
else
|
||||
RMAIL=rmail
|
||||
fi
|
||||
|
||||
# this is raceable
|
||||
rm -f $TEMP
|
||||
|
||||
cat > $TEMP <<EOF
|
||||
From: ${USER}
|
||||
To: ${BUGADDR}
|
||||
Subject: [50 character or so descriptive subject here (for reference)]
|
||||
|
||||
Configuration Information [Automatically generated, do not change]:
|
||||
Machine: $MACHINE
|
||||
OS: $OS
|
||||
Compiler: $CC
|
||||
Compilation CFLAGS: $CFLAGS
|
||||
uname output: $UN
|
||||
Machine Type: $MACHTYPE
|
||||
|
||||
Bash Version: $RELEASE
|
||||
Patch Level: $PATCHLEVEL
|
||||
Release Status: $RELSTATUS
|
||||
|
||||
Description:
|
||||
[Detailed description of the problem, suggestion, or complaint.]
|
||||
|
||||
Repeat-By:
|
||||
[Describe the sequence of events that causes the problem
|
||||
to occur.]
|
||||
|
||||
Fix:
|
||||
[Description of how to fix the problem. If you don't know a
|
||||
fix for the problem, don't include this section.]
|
||||
EOF
|
||||
|
||||
# this is still raceable
|
||||
rm -f $TEMP.x
|
||||
cp $TEMP $TEMP.x
|
||||
chmod u+w $TEMP
|
||||
|
||||
trap '' 2 # ignore interrupts while in editor
|
||||
|
||||
until $EDITOR $TEMP; do
|
||||
echo "$0: editor \`$EDITOR' exited with nonzero status."
|
||||
echo "$0: Perhaps it was interrupted."
|
||||
echo "$0: Type \`y' to give up, and lose your bug report;"
|
||||
echo "$0: type \`n' to re-enter the editor."
|
||||
echo $n "$0: Do you want to give up? $c"
|
||||
|
||||
read ans
|
||||
case "$ans" in
|
||||
[Yy]*) exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
trap 'rm -f $TEMP $TEMP.x; exit 1' 2 # restore trap on SIGINT
|
||||
|
||||
if cmp -s $TEMP $TEMP.x
|
||||
then
|
||||
echo "File not changed, no bug report submitted."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo $n "Send bug report? [y/n] $c"
|
||||
read ans
|
||||
case "$ans" in
|
||||
[Nn]*) exit 0 ;;
|
||||
esac
|
||||
|
||||
${RMAIL} $BUGADDR < $TEMP || {
|
||||
cat $TEMP >> $HOME/dead.bashbug
|
||||
echo "$0: mail failed: report saved in $HOME/dead.bashbug" >&2
|
||||
}
|
||||
|
||||
exit 0
|
BIN
tools/cygwin/bison.exe
Normal file
BIN
tools/cygwin/bison.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/bunzip2.exe
Normal file
BIN
tools/cygwin/bunzip2.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/byacc.exe
Normal file
BIN
tools/cygwin/byacc.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/bzcat.exe
Normal file
BIN
tools/cygwin/bzcat.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/bzip2.exe
Normal file
BIN
tools/cygwin/bzip2.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/bzip2recover.exe
Normal file
BIN
tools/cygwin/bzip2recover.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/c++.exe
Normal file
BIN
tools/cygwin/c++.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/c++filt.exe
Normal file
BIN
tools/cygwin/c++filt.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cat.exe
Normal file
BIN
tools/cygwin/cat.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/chgrp.exe
Normal file
BIN
tools/cygwin/chgrp.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/chmod.exe
Normal file
BIN
tools/cygwin/chmod.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/chown.exe
Normal file
BIN
tools/cygwin/chown.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/chroot.exe
Normal file
BIN
tools/cygwin/chroot.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cksum.exe
Normal file
BIN
tools/cygwin/cksum.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cmp.exe
Normal file
BIN
tools/cygwin/cmp.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/comm.exe
Normal file
BIN
tools/cygwin/comm.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cp.exe
Normal file
BIN
tools/cygwin/cp.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/csplit.exe
Normal file
BIN
tools/cygwin/csplit.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cut.exe
Normal file
BIN
tools/cygwin/cut.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cygcheck.exe
Normal file
BIN
tools/cygwin/cygcheck.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cygpath.exe
Normal file
BIN
tools/cygwin/cygpath.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cygtclsh80.exe
Normal file
BIN
tools/cygwin/cygtclsh80.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/cygwish80.exe
Normal file
BIN
tools/cygwin/cygwish80.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/date.exe
Normal file
BIN
tools/cygwin/date.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/dd.exe
Normal file
BIN
tools/cygwin/dd.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/df.exe
Normal file
BIN
tools/cygwin/df.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/diff.exe
Normal file
BIN
tools/cygwin/diff.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/diff3.exe
Normal file
BIN
tools/cygwin/diff3.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/dir.exe
Normal file
BIN
tools/cygwin/dir.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/dircolors.exe
Normal file
BIN
tools/cygwin/dircolors.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/dirname.exe
Normal file
BIN
tools/cygwin/dirname.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/dlltool.exe
Normal file
BIN
tools/cygwin/dlltool.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/dllwrap.exe
Normal file
BIN
tools/cygwin/dllwrap.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/du.exe
Normal file
BIN
tools/cygwin/du.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/echo.exe
Normal file
BIN
tools/cygwin/echo.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/egrep.exe
Normal file
BIN
tools/cygwin/egrep.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/env.exe
Normal file
BIN
tools/cygwin/env.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/expand.exe
Normal file
BIN
tools/cygwin/expand.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/expect.exe
Normal file
BIN
tools/cygwin/expect.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/expr.exe
Normal file
BIN
tools/cygwin/expr.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/factor.exe
Normal file
BIN
tools/cygwin/factor.exe
Normal file
Binary file not shown.
24
tools/cygwin/false
Normal file
24
tools/cygwin/false
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
usage="Usage: $0 [OPTION]...
|
||||
Exit unsucessfully.
|
||||
|
||||
--help display this help and exit
|
||||
--version output version information and exit
|
||||
|
||||
Report bugs to sh-utils-bugs@gnu.ai.mit.edu"
|
||||
|
||||
case $# in
|
||||
1 )
|
||||
case "z${1}" in
|
||||
z--help )
|
||||
echo "$usage"; exit 0 ;;
|
||||
z--version )
|
||||
echo "false (GNU sh-utils) 1.16"; exit 0 ;;
|
||||
* ) ;;
|
||||
esac
|
||||
;;
|
||||
* ) ;;
|
||||
esac
|
||||
|
||||
exit 1
|
BIN
tools/cygwin/fgrep.exe
Normal file
BIN
tools/cygwin/fgrep.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/find.exe
Normal file
BIN
tools/cygwin/find.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/flex++.exe
Normal file
BIN
tools/cygwin/flex++.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/flex.exe
Normal file
BIN
tools/cygwin/flex.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/fmt.exe
Normal file
BIN
tools/cygwin/fmt.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/fold.exe
Normal file
BIN
tools/cygwin/fold.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/g++.exe
Normal file
BIN
tools/cygwin/g++.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/gasp.exe
Normal file
BIN
tools/cygwin/gasp.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/gawk.exe
Normal file
BIN
tools/cygwin/gawk.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/gcc.exe
Normal file
BIN
tools/cygwin/gcc.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/gcov.exe
Normal file
BIN
tools/cygwin/gcov.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/gdb.exe
Normal file
BIN
tools/cygwin/gdb.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/grep.exe
Normal file
BIN
tools/cygwin/grep.exe
Normal file
Binary file not shown.
53
tools/cygwin/groups
Normal file
53
tools/cygwin/groups
Normal file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
# groups -- print the groups a user is in
|
||||
# Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
# Written by David MacKenzie <djm@gnu.ai.mit.edu>.
|
||||
|
||||
# Make sure we get GNU id, if possible; also allow
|
||||
# it to be somewhere else in PATH if not installed yet.
|
||||
PATH=/cygnus/cygwin-b20/H-i586-cygwin32/bin:$PATH
|
||||
|
||||
usage="Usage: $0 [OPTION]... [USERNAME]...
|
||||
|
||||
--help display this help and exit
|
||||
--version output version information and exit
|
||||
|
||||
Same as id -Gn. If no USERNAME, use current process.
|
||||
|
||||
Report bugs to sh-utils-bugs@gnu.ai.mit.edu"
|
||||
|
||||
case $# in
|
||||
1 )
|
||||
case "z${1}" in
|
||||
z--help )
|
||||
echo "$usage"; exit 0 ;;
|
||||
z--version )
|
||||
echo "groups (GNU sh-utils) 1.16"; exit 0 ;;
|
||||
* ) ;;
|
||||
esac
|
||||
;;
|
||||
* ) ;;
|
||||
esac
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
id -Gn
|
||||
else
|
||||
for name in "$@"; do
|
||||
echo $name : `id -Gn -- $name`
|
||||
done
|
||||
fi
|
BIN
tools/cygwin/gunzip.exe
Normal file
BIN
tools/cygwin/gunzip.exe
Normal file
Binary file not shown.
151
tools/cygwin/gzexe
Normal file
151
tools/cygwin/gzexe
Normal file
|
@ -0,0 +1,151 @@
|
|||
:
|
||||
#!/bin/sh
|
||||
# gzexe: compressor for Unix executables.
|
||||
# Use this only for binaries that you do not use frequently.
|
||||
#
|
||||
# The compressed version is a shell script which decompresses itself after
|
||||
# skipping $skip lines of shell commands. We try invoking the compressed
|
||||
# executable with the original name (for programs looking at their name).
|
||||
# We also try to retain the original file permissions on the compressed file.
|
||||
# For safety reasons, gzexe will not create setuid or setgid shell scripts.
|
||||
|
||||
# WARNING: the first line of this file must be either : or #!/bin/sh
|
||||
# The : is required for some old versions of csh.
|
||||
# On Ultrix, /bin/sh is too buggy, change the first line to: #!/bin/sh5
|
||||
|
||||
x=`basename $0`
|
||||
if test $# = 0; then
|
||||
echo compress executables. original file foo is renamed to foo~
|
||||
echo usage: ${x} [-d] files...
|
||||
echo " -d decompress the executables"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tmp=gz$$
|
||||
trap "rm -f $tmp; exit 1" 1 2 3 5 10 13 15
|
||||
|
||||
decomp=0
|
||||
res=0
|
||||
test "$x" = "ungzexe" && decomp=1
|
||||
if test "x$1" = "x-d"; then
|
||||
decomp=1
|
||||
shift
|
||||
fi
|
||||
|
||||
echo hi > zfoo1$$
|
||||
echo hi > zfoo2$$
|
||||
if test -z "`(${CPMOD-cpmod} zfoo1$$ zfoo2$$) 2>&1`"; then
|
||||
cpmod=${CPMOD-cpmod}
|
||||
fi
|
||||
rm -f zfoo[12]$$
|
||||
|
||||
tail=""
|
||||
IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
|
||||
for dir in $PATH; do
|
||||
test -z "$dir" && dir=.
|
||||
if test -f $dir/tail; then
|
||||
tail="$dir/tail"
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS="$saveifs"
|
||||
if test -z "$tail"; then
|
||||
echo cannot find tail
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for i do
|
||||
if test ! -f "$i" ; then
|
||||
echo ${x}: $i not a file
|
||||
res=1
|
||||
continue
|
||||
fi
|
||||
if test $decomp -eq 0; then
|
||||
if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then
|
||||
echo "${x}: $i is already gzexe'd"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
if ls -l "$i" | grep '^...[sS]' > /dev/null; then
|
||||
echo "${x}: $i has setuid permission, unchanged"
|
||||
continue
|
||||
fi
|
||||
if ls -l "$i" | grep '^......[sS]' > /dev/null; then
|
||||
echo "${x}: $i has setgid permission, unchanged"
|
||||
continue
|
||||
fi
|
||||
case "`basename $i`" in
|
||||
gzip | tail | chmod | ln | sleep | rm)
|
||||
echo "${x}: $i would depend on itself"; continue ;;
|
||||
esac
|
||||
if test -z "$cpmod"; then
|
||||
cp -p "$i" $tmp 2>/dev/null || cp "$i" $tmp
|
||||
if test -w $tmp 2>/dev/null; then
|
||||
writable=1
|
||||
else
|
||||
writable=0
|
||||
chmod u+w $tmp 2>/dev/null
|
||||
fi
|
||||
fi
|
||||
if test $decomp -eq 0; then
|
||||
sed 1q $0 > $tmp
|
||||
sed "s|^if tail|if $tail|" >> $tmp <<'EOF'
|
||||
skip=18
|
||||
if tail +$skip $0 | "/cygnus/cygwin-b20/H-i586-cygwin32/bin"/gzip -cd > /tmp/gztmp$$; then
|
||||
/bin/chmod 700 /tmp/gztmp$$
|
||||
prog="`echo $0 | /bin/sed 's|^.*/||'`"
|
||||
if /bin/ln /tmp/gztmp$$ "/tmp/$prog" 2>/dev/null; then
|
||||
trap '/bin/rm -f /tmp/gztmp$$ "/tmp/$prog"; exit $res' 0
|
||||
(/bin/sleep 5; /bin/rm -f /tmp/gztmp$$ "/tmp/$prog") 2>/dev/null &
|
||||
/tmp/"$prog" ${1+"$@"}; res=$?
|
||||
else
|
||||
trap '/bin/rm -f /tmp/gztmp$$; exit $res' 0
|
||||
(/bin/sleep 5; /bin/rm -f /tmp/gztmp$$) 2>/dev/null &
|
||||
/tmp/gztmp$$ ${1+"$@"}; res=$?
|
||||
fi
|
||||
else
|
||||
echo Cannot decompress $0; exit 1
|
||||
fi; exit $res
|
||||
EOF
|
||||
"/cygnus/cygwin-b20/H-i586-cygwin32/bin"/gzip -cv9 "$i" >> $tmp || {
|
||||
/bin/rm -f $tmp
|
||||
echo ${x}: compression not possible for $i, file unchanged.
|
||||
res=1
|
||||
continue
|
||||
}
|
||||
|
||||
else
|
||||
# decompression
|
||||
skip=18
|
||||
if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then
|
||||
eval `sed -e 1d -e 2q "$i"`
|
||||
fi
|
||||
if tail +$skip "$i" | "/cygnus/cygwin-b20/H-i586-cygwin32/bin"/gzip -cd > $tmp; then
|
||||
:
|
||||
else
|
||||
echo ${x}: $i probably not in gzexe format, file unchanged.
|
||||
res=1
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
rm -f "$i~"
|
||||
mv "$i" "$i~" || {
|
||||
echo ${x}: cannot backup $i as $i~
|
||||
rm -f $tmp
|
||||
res=1
|
||||
continue
|
||||
}
|
||||
mv $tmp "$i" || cp -p $tmp "$i" 2>/dev/null || cp $tmp "$i" || {
|
||||
echo ${x}: cannot create $i
|
||||
rm -f $tmp
|
||||
res=1
|
||||
continue
|
||||
}
|
||||
rm -f $tmp
|
||||
if test -n "$cpmod"; then
|
||||
$cpmod "$i~" "$i" 2>/dev/null
|
||||
elif test $writable -eq 0; then
|
||||
chmod u-w $i 2>/dev/null
|
||||
fi
|
||||
done
|
||||
exit $res
|
BIN
tools/cygwin/gzip.exe
Normal file
BIN
tools/cygwin/gzip.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/head.exe
Normal file
BIN
tools/cygwin/head.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/hostname.exe
Normal file
BIN
tools/cygwin/hostname.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/i586-cygwin32-gcc.exe
Normal file
BIN
tools/cygwin/i586-cygwin32-gcc.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/id.exe
Normal file
BIN
tools/cygwin/id.exe
Normal file
Binary file not shown.
130
tools/cygwin/igawk
Normal file
130
tools/cygwin/igawk
Normal file
|
@ -0,0 +1,130 @@
|
|||
#! /bin/sh
|
||||
|
||||
# igawk --- like gawk but do @include processing
|
||||
# Arnold Robbins, arnold@gnu.ai.mit.edu, Public Domain
|
||||
# July 1993
|
||||
|
||||
if [ "$1" = debug ]
|
||||
then
|
||||
set -x
|
||||
shift
|
||||
else
|
||||
# cleanup on exit, hangup, interrupt, quit, termination
|
||||
trap 'rm -f /tmp/ig.[se].$$' 0 1 2 3 15
|
||||
fi
|
||||
|
||||
while [ $# -ne 0 ] # loop over arguments
|
||||
do
|
||||
case $1 in
|
||||
--) shift; break;;
|
||||
|
||||
-W) shift
|
||||
set -- -W"$@"
|
||||
continue;;
|
||||
|
||||
-[vF]) opts="$opts $1 '$2'"
|
||||
shift;;
|
||||
|
||||
-[vF]*) opts="$opts '$1'" ;;
|
||||
|
||||
-f) echo @include "$2" >> /tmp/ig.s.$$
|
||||
shift;;
|
||||
|
||||
-f*) f=`echo "$1" | sed 's/-f//'`
|
||||
echo @include "$f" >> /tmp/ig.s.$$ ;;
|
||||
|
||||
-?file=*) # -Wfile or --file
|
||||
f=`echo "$1" | sed 's/-.file=//'`
|
||||
echo @include "$f" >> /tmp/ig.s.$$ ;;
|
||||
|
||||
-?file) # get arg, $2
|
||||
echo @include "$2" >> /tmp/ig.s.$$
|
||||
shift;;
|
||||
|
||||
-?source=*) # -Wsource or --source
|
||||
t=`echo "$1" | sed 's/-.source=//'`
|
||||
echo "$t" >> /tmp/ig.s.$$ ;;
|
||||
|
||||
-?source) # get arg, $2
|
||||
echo "$2" >> /tmp/ig.s.$$
|
||||
shift;;
|
||||
|
||||
-?version)
|
||||
echo igawk: version 1.0 1>&2
|
||||
gawk --version
|
||||
exit 0 ;;
|
||||
|
||||
-[W-]*) opts="$opts '$1'" ;;
|
||||
|
||||
*) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ ! -s /tmp/ig.s.$$ ]
|
||||
then
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo igawk: no program! 1>&2
|
||||
exit 1
|
||||
else
|
||||
echo "$1" > /tmp/ig.s.$$
|
||||
shift
|
||||
fi
|
||||
fi
|
||||
|
||||
# at this point, /tmp/ig.s.$$ has the program
|
||||
gawk -- '
|
||||
# process @include directives
|
||||
|
||||
function pathto(file, i, t, junk)
|
||||
{
|
||||
if (index(file, "/") != 0)
|
||||
return file
|
||||
|
||||
for (i = 1; i <= ndirs; i++) {
|
||||
t = (pathlist[i] "/" file)
|
||||
if ((getline junk < t) > 0) {
|
||||
# found it
|
||||
close(t)
|
||||
return t
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
||||
BEGIN {
|
||||
path = ENVIRON["AWKPATH"]
|
||||
ndirs = split(path, pathlist, ":")
|
||||
for (i = 1; i <= ndirs; i++) {
|
||||
if (pathlist[i] == "")
|
||||
pathlist[i] = "."
|
||||
}
|
||||
stackptr = 0
|
||||
input[stackptr] = ARGV[1] # ARGV[1] is first file
|
||||
|
||||
for (; stackptr >= 0; stackptr--) {
|
||||
while ((getline < input[stackptr]) > 0) {
|
||||
if (tolower($1) != "@include") {
|
||||
print
|
||||
continue
|
||||
}
|
||||
fpath = pathto($2)
|
||||
if (fpath == "") {
|
||||
printf("igawk:%s:%d: cannot find %s\n", \
|
||||
input[stackptr], FNR, $2) > "/dev/stderr"
|
||||
continue
|
||||
}
|
||||
if (! (fpath in processed)) {
|
||||
processed[fpath] = input[stackptr]
|
||||
input[++stackptr] = fpath
|
||||
} else
|
||||
print $2, "included in", input[stackptr], \
|
||||
"already included in", \
|
||||
processed[fpath] > "/dev/stderr"
|
||||
}
|
||||
close(input[stackptr])
|
||||
}
|
||||
}' /tmp/ig.s.$$ > /tmp/ig.e.$$
|
||||
eval gawk -f /tmp/ig.e.$$ $opts -- "$@"
|
||||
|
||||
exit $?
|
BIN
tools/cygwin/install.exe
Normal file
BIN
tools/cygwin/install.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/itcl_sh.exe
Normal file
BIN
tools/cygwin/itcl_sh.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/itcl_wish.exe
Normal file
BIN
tools/cygwin/itcl_wish.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/join.exe
Normal file
BIN
tools/cygwin/join.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/kill.exe
Normal file
BIN
tools/cygwin/kill.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/ld.exe
Normal file
BIN
tools/cygwin/ld.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/less.exe
Normal file
BIN
tools/cygwin/less.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/lessecho.exe
Normal file
BIN
tools/cygwin/lessecho.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/lesskey.exe
Normal file
BIN
tools/cygwin/lesskey.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/ln.exe
Normal file
BIN
tools/cygwin/ln.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/locate.exe
Normal file
BIN
tools/cygwin/locate.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/logname.exe
Normal file
BIN
tools/cygwin/logname.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/ls.exe
Normal file
BIN
tools/cygwin/ls.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/m4.exe
Normal file
BIN
tools/cygwin/m4.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/make.exe
Normal file
BIN
tools/cygwin/make.exe
Normal file
Binary file not shown.
24
tools/cygwin/makeinfo
Normal file
24
tools/cygwin/makeinfo
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
usage="Usage: $0 [OPTION]...
|
||||
Exit successfully.
|
||||
|
||||
--help display this help and exit
|
||||
--version output version information and exit
|
||||
|
||||
Report bugs to sh-utils-bugs@gnu.ai.mit.edu"
|
||||
|
||||
case $# in
|
||||
1 )
|
||||
case "z${1}" in
|
||||
z--help )
|
||||
echo "$usage"; exit 0 ;;
|
||||
z--version )
|
||||
echo "true (GNU sh-utils) 1.16"; exit 0 ;;
|
||||
* ) ;;
|
||||
esac
|
||||
;;
|
||||
* ) ;;
|
||||
esac
|
||||
|
||||
exit 0
|
BIN
tools/cygwin/md5sum.exe
Normal file
BIN
tools/cygwin/md5sum.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mkdir.exe
Normal file
BIN
tools/cygwin/mkdir.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mkfifo.exe
Normal file
BIN
tools/cygwin/mkfifo.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mkgroup.exe
Normal file
BIN
tools/cygwin/mkgroup.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mknod.exe
Normal file
BIN
tools/cygwin/mknod.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mkpasswd.exe
Normal file
BIN
tools/cygwin/mkpasswd.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mount.exe
Normal file
BIN
tools/cygwin/mount.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/mv.exe
Normal file
BIN
tools/cygwin/mv.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/nice.exe
Normal file
BIN
tools/cygwin/nice.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/nl.exe
Normal file
BIN
tools/cygwin/nl.exe
Normal file
Binary file not shown.
BIN
tools/cygwin/nm.exe
Normal file
BIN
tools/cygwin/nm.exe
Normal file
Binary file not shown.
75
tools/cygwin/nohup
Normal file
75
tools/cygwin/nohup
Normal file
|
@ -0,0 +1,75 @@
|
|||
#!/bin/sh
|
||||
# nohup -- run a command immume to hangups, with output to a non-tty
|
||||
# Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
# Written by David MacKenzie <djm@gnu.ai.mit.edu>.
|
||||
|
||||
# Make sure we get GNU nice, if possible; also allow
|
||||
# it to be somewhere else in PATH if not installed yet.
|
||||
PATH=/cygnus/cygwin-b20/H-i586-cygwin32/bin:$PATH
|
||||
|
||||
usage="Usage: $0 COMMAND [ARG]...
|
||||
or: $0 OPTION"
|
||||
|
||||
usage_try="
|
||||
Try \`$0 --help' for more information."
|
||||
|
||||
usage_help="Run COMMAND, ignoring hangup signals.
|
||||
|
||||
--help display this help and exit
|
||||
--version output version information and exit
|
||||
|
||||
Report bugs to sh-utils-bugs@gnu.ai.mit.edu"
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo >&2 "$usage"
|
||||
echo >&2 "$usage_try"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case $# in
|
||||
1 )
|
||||
case "z${1}" in
|
||||
z--help )
|
||||
echo "$usage"; echo "$usage_help"; exit 0 ;;
|
||||
z--version )
|
||||
echo "nohup (GNU sh-utils) 1.16"; exit 0 ;;
|
||||
* ) ;;
|
||||
esac
|
||||
;;
|
||||
* ) ;;
|
||||
esac
|
||||
|
||||
trap "" 1
|
||||
oldmask=`umask`; umask 077
|
||||
# Only redirect the output if the user didn't already do it.
|
||||
if [ -t 1 ]; then
|
||||
# If we cannot write to the current directory, use the home directory.
|
||||
if cat /dev/null >> nohup.out; then
|
||||
echo "nohup: appending output to \`nohup.out'" 2>&1
|
||||
umask $oldmask
|
||||
exec nice -5 -- "$@" >> nohup.out 2>&1
|
||||
else
|
||||
cat /dev/null >> $HOME/nohup.out
|
||||
echo "nohup: appending output to \`$HOME/nohup.out'" 2>&1
|
||||
umask $oldmask
|
||||
exec nice -5 -- "$@" >> $HOME/nohup.out 2>&1
|
||||
fi
|
||||
else
|
||||
umask $oldmask
|
||||
exec nice -5 -- "$@"
|
||||
fi
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue