Initial commit
This commit is contained in:
8
TBE/msys/1.0/bin/awk
Normal file
8
TBE/msys/1.0/bin/awk
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: awk
|
||||
|
||||
gawk "$@"
|
||||
BIN
TBE/msys/1.0/bin/basename.exe
Normal file
BIN
TBE/msys/1.0/bin/basename.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/bunzip2
Normal file
8
TBE/msys/1.0/bin/bunzip2
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.html
|
||||
# File: bunzip2
|
||||
|
||||
bzip2 -d $@
|
||||
BIN
TBE/msys/1.0/bin/bzip2.exe
Normal file
BIN
TBE/msys/1.0/bin/bzip2.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/cat.exe
Normal file
BIN
TBE/msys/1.0/bin/cat.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/chmod.exe
Normal file
BIN
TBE/msys/1.0/bin/chmod.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/cmd
Normal file
8
TBE/msys/1.0/bin/cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of Minimal SYStem.
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: cmd
|
||||
|
||||
`echo $COMSPEC | sed -e 's#\\\\#/#g'` "$@"
|
||||
BIN
TBE/msys/1.0/bin/cmp.exe
Normal file
BIN
TBE/msys/1.0/bin/cmp.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/comm.exe
Normal file
BIN
TBE/msys/1.0/bin/comm.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/cp.exe
Normal file
BIN
TBE/msys/1.0/bin/cp.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/cut.exe
Normal file
BIN
TBE/msys/1.0/bin/cut.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/date.exe
Normal file
BIN
TBE/msys/1.0/bin/date.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/diff.exe
Normal file
BIN
TBE/msys/1.0/bin/diff.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/diff3.exe
Normal file
BIN
TBE/msys/1.0/bin/diff3.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/dirname.exe
Normal file
BIN
TBE/msys/1.0/bin/dirname.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/echo
Normal file
8
TBE/msys/1.0/bin/echo
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: echo
|
||||
|
||||
echo "$@"
|
||||
8
TBE/msys/1.0/bin/egrep
Normal file
8
TBE/msys/1.0/bin/egrep
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: egrep
|
||||
|
||||
grep -E "$@"
|
||||
BIN
TBE/msys/1.0/bin/env.exe
Normal file
BIN
TBE/msys/1.0/bin/env.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/ex
Normal file
8
TBE/msys/1.0/bin/ex
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.html
|
||||
# File: ex
|
||||
|
||||
exec vim -e "$@"
|
||||
BIN
TBE/msys/1.0/bin/expr.exe
Normal file
BIN
TBE/msys/1.0/bin/expr.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/false.exe
Normal file
BIN
TBE/msys/1.0/bin/false.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/fgrep
Normal file
8
TBE/msys/1.0/bin/fgrep
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: fgrep
|
||||
|
||||
grep -F "$@"
|
||||
BIN
TBE/msys/1.0/bin/find.exe
Normal file
BIN
TBE/msys/1.0/bin/find.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/fold.exe
Normal file
BIN
TBE/msys/1.0/bin/fold.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/ftp
Normal file
8
TBE/msys/1.0/bin/ftp
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of Minimal SYStem.
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: ftp
|
||||
|
||||
cmd //c start ftp "$@"
|
||||
BIN
TBE/msys/1.0/bin/gawk.exe
Normal file
BIN
TBE/msys/1.0/bin/gawk.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/grep.exe
Normal file
BIN
TBE/msys/1.0/bin/grep.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/gunzip
Normal file
8
TBE/msys/1.0/bin/gunzip
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.html
|
||||
# File: gunzip
|
||||
|
||||
gzip -d $@
|
||||
BIN
TBE/msys/1.0/bin/gzip.exe
Normal file
BIN
TBE/msys/1.0/bin/gzip.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/head.exe
Normal file
BIN
TBE/msys/1.0/bin/head.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/id.exe
Normal file
BIN
TBE/msys/1.0/bin/id.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/info.exe
Normal file
BIN
TBE/msys/1.0/bin/info.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/infokey.exe
Normal file
BIN
TBE/msys/1.0/bin/infokey.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/install-info.exe
Normal file
BIN
TBE/msys/1.0/bin/install-info.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/install.exe
Normal file
BIN
TBE/msys/1.0/bin/install.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/less.exe
Normal file
BIN
TBE/msys/1.0/bin/less.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/libW11.dll
Normal file
BIN
TBE/msys/1.0/bin/libW11.dll
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/ln.exe
Normal file
BIN
TBE/msys/1.0/bin/ln.exe
Normal file
Binary file not shown.
19
TBE/msys/1.0/bin/lnkcnv
Normal file
19
TBE/msys/1.0/bin/lnkcnv
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of Minimal SYStem.
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: lnkcnv - .lnk symlink file to actual file converter.
|
||||
|
||||
Param1=$1
|
||||
LinkName=`echo $Param1 | sed -e 's/\.lnk$//'`
|
||||
FileName=`cat $Param1 | tr '[:cntrl:]' ' ' | \
|
||||
sed -e 's/ / /g' \
|
||||
-e 's/ / /g' \
|
||||
-e 's/ / /g' \
|
||||
-e 's/ / /g' \
|
||||
-e 's/ / /g' | \
|
||||
cut -f 4 -d ' '`
|
||||
|
||||
ln -s $FileName $LinkName
|
||||
rm -f $Param1
|
||||
BIN
TBE/msys/1.0/bin/ls.exe
Normal file
BIN
TBE/msys/1.0/bin/ls.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/m4.exe
Normal file
BIN
TBE/msys/1.0/bin/m4.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/make.exe
Normal file
BIN
TBE/msys/1.0/bin/make.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/makeinfo.exe
Normal file
BIN
TBE/msys/1.0/bin/makeinfo.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/md5sum.exe
Normal file
BIN
TBE/msys/1.0/bin/md5sum.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/mkdir.exe
Normal file
BIN
TBE/msys/1.0/bin/mkdir.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/mount.exe
Normal file
BIN
TBE/msys/1.0/bin/mount.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/msys-1.0.dll
Normal file
BIN
TBE/msys/1.0/bin/msys-1.0.dll
Normal file
Binary file not shown.
29
TBE/msys/1.0/bin/msysinfo
Normal file
29
TBE/msys/1.0/bin/msysinfo
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
# This script has been placed in the public domain by its author, John Kane.
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: msysinfo
|
||||
|
||||
echo 'msysinfo-1.3: Send this to the MSYS support list:'
|
||||
echo ; echo 'MSYS '$(uname -rvmp)"; targ="$(uname -s|cut -d_ -f1)
|
||||
echo $(sh --version | grep -i '[0-9]\.[0-9]')"; ENV=${ENV:-.profile}"
|
||||
echo -n $(make --version | grep -i '[0-9]\.[0-9]' | cut -db -f1)""
|
||||
echo $(make --version | grep -i 'Built')"; MAKE_MODE=$MAKE_MODE"
|
||||
echo $(gcc --version | grep -i '[0-9]\.[0-9]')"; targ="$(uname -s|cut -d_ -f1)
|
||||
ld --version | grep -i '[0-9]\.[0-9]'
|
||||
ls -o --full-time /bin/msys*.dll | cut -c 25-
|
||||
ls -o --full-time $(type -p make).exe | cut -c 25-
|
||||
ls -o --full-time $(type -p gcc).exe | cut -c 25-
|
||||
ls -o --full-time $(type -p ld).exe | cut -c 25-
|
||||
echo "HOME=$HOME"
|
||||
echo "Sysname=$(uname --sysname) OSTYPE=$OSTYPE TERM=$TERM"
|
||||
echo "PATH=$PATH" | fold -w 64 ; echo "$ ls -tx $PWD" ; ls -tAxFw64
|
||||
if [ "$1" = "all" ] || [ "$1" = "long" ] ; then
|
||||
echo ; md5sum -b /bin/msys*.dll ; md5sum -b $(type -p make).exe
|
||||
md5sum -b $(type -p gcc).exe ; md5sum -b $(type -p ld).exe
|
||||
echo ; echo "In /etc/fstab:" ; cat /etc/fstab | grep '/'
|
||||
echo ; echo "In /etc/profile:" ; cat /etc/profile | grep -i 'export'
|
||||
echo ; grep -a '%%%' /bin/msys*.dll
|
||||
echo ; set | fold -sw 64
|
||||
echo ; echo '$ msysinfo all >msysinfo.txt will save this to a file'
|
||||
fi
|
||||
BIN
TBE/msys/1.0/bin/mv.exe
Normal file
BIN
TBE/msys/1.0/bin/mv.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/od.exe
Normal file
BIN
TBE/msys/1.0/bin/od.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/patch.exe
Normal file
BIN
TBE/msys/1.0/bin/patch.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/printf
Normal file
8
TBE/msys/1.0/bin/printf
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: printf
|
||||
|
||||
printf "$@"
|
||||
BIN
TBE/msys/1.0/bin/ps.exe
Normal file
BIN
TBE/msys/1.0/bin/ps.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/pwd
Normal file
8
TBE/msys/1.0/bin/pwd
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: pwd
|
||||
|
||||
pwd "$@"
|
||||
BIN
TBE/msys/1.0/bin/rm.exe
Normal file
BIN
TBE/msys/1.0/bin/rm.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/rmdir.exe
Normal file
BIN
TBE/msys/1.0/bin/rmdir.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/rvi
Normal file
8
TBE/msys/1.0/bin/rvi
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@uses.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: rvi
|
||||
|
||||
exec vim -Z "$@"
|
||||
8
TBE/msys/1.0/bin/rview
Normal file
8
TBE/msys/1.0/bin/rview
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: rview
|
||||
|
||||
exec vim -ZR "$@"
|
||||
8
TBE/msys/1.0/bin/rvim
Normal file
8
TBE/msys/1.0/bin/rvim
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: rvim
|
||||
|
||||
exec vim -Z "$@"
|
||||
BIN
TBE/msys/1.0/bin/rxvt.exe
Normal file
BIN
TBE/msys/1.0/bin/rxvt.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/sed.exe
Normal file
BIN
TBE/msys/1.0/bin/sed.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/sh.exe
Normal file
BIN
TBE/msys/1.0/bin/sh.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/sleep.exe
Normal file
BIN
TBE/msys/1.0/bin/sleep.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/sort.exe
Normal file
BIN
TBE/msys/1.0/bin/sort.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/split.exe
Normal file
BIN
TBE/msys/1.0/bin/split.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/start
Normal file
8
TBE/msys/1.0/bin/start
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of Minimal SYStem.
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: start
|
||||
|
||||
cmd //c start "$@"
|
||||
BIN
TBE/msys/1.0/bin/tail.exe
Normal file
BIN
TBE/msys/1.0/bin/tail.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/tar.exe
Normal file
BIN
TBE/msys/1.0/bin/tar.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/tee.exe
Normal file
BIN
TBE/msys/1.0/bin/tee.exe
Normal file
Binary file not shown.
657
TBE/msys/1.0/bin/texi2dvi
Normal file
657
TBE/msys/1.0/bin/texi2dvi
Normal file
@@ -0,0 +1,657 @@
|
||||
#! /bin/sh
|
||||
# texi2dvi --- produce DVI (or PDF) files from Texinfo (or LaTeX) sources.
|
||||
# $Id: texi2dvi,v 1.1 2002/12/05 21:07:19 earnie Exp $
|
||||
#
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001,
|
||||
# 2002 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, you can either send email to this
|
||||
# program's maintainer or write to: The Free Software Foundation,
|
||||
# Inc.; 59 Temple Place, Suite 330; Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Original author: Noah Friedman <friedman@gnu.org>.
|
||||
#
|
||||
# Please send bug reports, etc. to bug-texinfo@gnu.org.
|
||||
# If possible, please send a copy of the output of the script called with
|
||||
# the `--debug' option when making a bug report.
|
||||
|
||||
# This string is expanded by rcs automatically when this file is checked out.
|
||||
rcs_revision='$Revision: 1.1 $'
|
||||
rcs_version=`set - $rcs_revision; echo $2`
|
||||
program=`echo $0 | sed -e 's!.*/!!'`
|
||||
version="texi2dvi (GNU Texinfo 4.3) $rcs_version
|
||||
|
||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
There is NO warranty. You may redistribute this software
|
||||
under the terms of the GNU General Public License.
|
||||
For more information about these matters, see the files named COPYING."
|
||||
|
||||
usage="Usage: $program [OPTION]... FILE...
|
||||
|
||||
Run each Texinfo or LaTeX FILE through TeX in turn until all
|
||||
cross-references are resolved, building all indices. The directory
|
||||
containing each FILE is searched for included files. The suffix of FILE
|
||||
is used to determine its language (LaTeX or Texinfo).
|
||||
|
||||
Makeinfo is used to perform Texinfo macro expansion before running TeX
|
||||
when needed.
|
||||
|
||||
Operation modes:
|
||||
-b, --batch no interaction
|
||||
-c, --clean remove all auxiliary files
|
||||
-D, --debug turn on shell debugging (set -x)
|
||||
-h, --help display this help and exit successfully
|
||||
-o, --output=OFILE leave output in OFILE (implies --clean);
|
||||
Only one input FILE may be specified in this case
|
||||
-q, --quiet no output unless errors (implies --batch)
|
||||
-s, --silent same as --quiet
|
||||
-v, --version display version information and exit successfully
|
||||
-V, --verbose report on what is done
|
||||
|
||||
TeX tuning:
|
||||
-@ use @input instead of \input; for preloaded Texinfo
|
||||
-e, -E, --expand force macro expansion using makeinfo
|
||||
-I DIR search DIR for Texinfo files
|
||||
-l, --language=LANG specify the LANG of FILE (LaTeX or Texinfo)
|
||||
-p, --pdf use pdftex or pdflatex for processing
|
||||
-t, --texinfo=CMD insert CMD after @setfilename in copy of input file
|
||||
multiple values accumulate
|
||||
|
||||
The values of the BIBTEX, LATEX (or PDFLATEX), MAKEINDEX, MAKEINFO,
|
||||
TEX (or PDFTEX), and TEXINDEX environment variables are used to run
|
||||
those commands, if they are set.
|
||||
|
||||
Email bug reports to <bug-texinfo@gnu.org>,
|
||||
general questions and discussion to <help-texinfo@gnu.org>.
|
||||
Texinfo home page: http://www.gnu.org/software/texinfo/"
|
||||
|
||||
# Initialize variables for option overriding and otherwise.
|
||||
# Don't use `unset' since old bourne shells don't have this command.
|
||||
# Instead, assign them an empty value.
|
||||
batch=false # eval for batch mode
|
||||
clean=
|
||||
debug=
|
||||
escape='\'
|
||||
expand= # t for expansion via makeinfo
|
||||
miincludes= # makeinfo include path
|
||||
oformat=dvi
|
||||
oname= # --output
|
||||
quiet= # by default let the tools' message be displayed
|
||||
set_language=
|
||||
textra=
|
||||
tmpdir=${TMPDIR:-/tmp}/t2d$$ # avoid collisions on 8.3 filesystems.
|
||||
txincludes= # TEXINPUTS extensions, with trailing colon
|
||||
txiprereq=19990129 # minimum texinfo.tex version to have macro expansion
|
||||
verbose=false # echo for verbose mode
|
||||
|
||||
orig_pwd=`pwd`
|
||||
|
||||
# Systems which define $COMSPEC or $ComSpec use semicolons to separate
|
||||
# directories in TEXINPUTS.
|
||||
if test -n "$COMSPEC$ComSpec"; then
|
||||
path_sep=";"
|
||||
else
|
||||
path_sep=":"
|
||||
fi
|
||||
|
||||
# Pacify verbose cds.
|
||||
CDPATH=${ZSH_VERSION+.}$path_sep
|
||||
|
||||
# Save this so we can construct a new TEXINPUTS path for each file.
|
||||
TEXINPUTS_orig="$TEXINPUTS"
|
||||
# Unfortunately makeindex does not read TEXINPUTS.
|
||||
INDEXSTYLE_orig="$INDEXSTYLE"
|
||||
export TEXINPUTS INDEXSTYLE
|
||||
|
||||
# Push a token among the arguments that will be used to notice when we
|
||||
# ended options/arguments parsing.
|
||||
# Use "set dummy ...; shift" rather than 'set - ..." because on
|
||||
# Solaris set - turns off set -x (but keeps set -e).
|
||||
# Use ${1+"$@"} rather than "$@" because Digital Unix and Ultrix 4.3
|
||||
# still expand "$@" to a single argument (the empty string) rather
|
||||
# than nothing at all.
|
||||
arg_sep="$$--$$"
|
||||
set dummy ${1+"$@"} "$arg_sep"; shift
|
||||
|
||||
#
|
||||
# Parse command line arguments.
|
||||
while test x"$1" != x"$arg_sep"; do
|
||||
|
||||
# Handle --option=value by splitting apart and putting back on argv.
|
||||
case "$1" in
|
||||
--*=*)
|
||||
opt=`echo "$1" | sed -e 's/=.*//'`
|
||||
val=`echo "$1" | sed -e 's/[^=]*=//'`
|
||||
shift
|
||||
set dummy "$opt" "$val" ${1+"$@"}; shift
|
||||
;;
|
||||
esac
|
||||
|
||||
# This recognizes --quark as --quiet. So what.
|
||||
case "$1" in
|
||||
-@ ) escape=@;;
|
||||
# Silently and without documentation accept -b and --b[atch] as synonyms.
|
||||
-b | --b*) batch=eval;;
|
||||
-q | -s | --q* | --s*) quiet=t; batch=eval;;
|
||||
-c | --c*) clean=t;;
|
||||
-D | --d*) debug=t;;
|
||||
-e | -E | --e*) expand=t;;
|
||||
-h | --h*) echo "$usage"; exit 0;;
|
||||
-I | --I*)
|
||||
shift
|
||||
miincludes="$miincludes -I $1"
|
||||
txincludes="$txincludes$1$path_sep"
|
||||
;;
|
||||
-l | --l*) shift; set_language=$1;;
|
||||
-o | --o*)
|
||||
shift
|
||||
clean=t
|
||||
case "$1" in
|
||||
/* | ?:/*) oname=$1;;
|
||||
*) oname="$orig_pwd/$1";;
|
||||
esac;;
|
||||
-p | --p*) oformat=pdf;;
|
||||
-t | --t*) shift; textra="$textra\\
|
||||
$1";;
|
||||
-v | --vers*) echo "$version"; exit 0;;
|
||||
-V | --verb*) verbose=echo;;
|
||||
--) # What remains are not options.
|
||||
shift
|
||||
while test x"$1" != x"$arg_sep"; do
|
||||
set dummy ${1+"$@"} "$1"; shift
|
||||
shift
|
||||
done
|
||||
break;;
|
||||
-*)
|
||||
echo "$0: Unknown or ambiguous option \`$1'." >&2
|
||||
echo "$0: Try \`--help' for more information." >&2
|
||||
exit 1;;
|
||||
*) set dummy ${1+"$@"} "$1"; shift;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
# Pop the token
|
||||
shift
|
||||
|
||||
# Interpret remaining command line args as filenames.
|
||||
case $# in
|
||||
0)
|
||||
echo "$0: Missing file arguments." >&2
|
||||
echo "$0: Try \`--help' for more information." >&2
|
||||
exit 2
|
||||
;;
|
||||
1) ;;
|
||||
*)
|
||||
if test -n "$oname"; then
|
||||
echo "$0: Can't use option \`--output' with more than one argument." >&2
|
||||
exit 2
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Prepare the temporary directory. Remove it at exit, unless debugging.
|
||||
if test -z "$debug"; then
|
||||
trap "cd / && rm -rf $tmpdir" 0 1 2 15
|
||||
fi
|
||||
|
||||
# Create the temporary directory with strict rights
|
||||
(umask 077 && mkdir $tmpdir) || exit 1
|
||||
|
||||
# Prepare the tools we might need. This may be extra work in some
|
||||
# cases, but improves the readibility of the script.
|
||||
utildir=$tmpdir/utils
|
||||
mkdir $utildir || exit 1
|
||||
|
||||
# A sed script that preprocesses Texinfo sources in order to keep the
|
||||
# iftex sections only. We want to remove non TeX sections, and
|
||||
# comment (with `@c texi2dvi') TeX sections so that makeinfo does not
|
||||
# try to parse them. Nevertheless, while commenting TeX sections,
|
||||
# don't comment @macro/@end macro so that makeinfo does propagate
|
||||
# them. Unfortunately makeinfo --iftex --no-ifhtml --no-ifinfo
|
||||
# doesn't work well enough (yet) to use that, so work around with sed.
|
||||
comment_iftex_sed=$utildir/comment.sed
|
||||
cat <<EOF >$comment_iftex_sed
|
||||
/^@tex/,/^@end tex/{
|
||||
s/^/@c texi2dvi/
|
||||
}
|
||||
/^@iftex/,/^@end iftex/{
|
||||
s/^/@c texi2dvi/
|
||||
/^@c texi2dvi@macro/,/^@c texi2dvi@end macro/{
|
||||
s/^@c texi2dvi//
|
||||
}
|
||||
}
|
||||
/^@html/,/^@end html/{
|
||||
s/^/@c (texi2dvi)/
|
||||
}
|
||||
/^@ifhtml/,/^@end ifhtml/{
|
||||
s/^/@c (texi2dvi)/
|
||||
}
|
||||
/^@ifnottex/,/^@end ifnottex/{
|
||||
s/^/@c (texi2dvi)/
|
||||
}
|
||||
/^@ifinfo/,/^@end ifinfo/{
|
||||
/^@node/p
|
||||
/^@menu/,/^@end menu/p
|
||||
t
|
||||
s/^/@c (texi2dvi)/
|
||||
}
|
||||
s/^@ifnotinfo/@c texi2dvi@ifnotinfo/
|
||||
s/^@end ifnotinfo/@c texi2dvi@end ifnotinfo/
|
||||
EOF
|
||||
# Uncommenting is simple: Remove any leading `@c texi2dvi'.
|
||||
uncomment_iftex_sed=$utildir/uncomment.sed
|
||||
cat <<EOF >$uncomment_iftex_sed
|
||||
s/^@c texi2dvi//
|
||||
EOF
|
||||
|
||||
# A shell script that computes the list of xref files.
|
||||
# Takes the filename (without extension) of which we look for xref
|
||||
# files as argument. The index files must be reported last.
|
||||
get_xref_files=$utildir/get_xref.sh
|
||||
cat <<\EOF >$get_xref_files
|
||||
#! /bin/sh
|
||||
|
||||
# Get list of xref files (indexes, tables and lists).
|
||||
# Find all files having root filename with a two-letter extension,
|
||||
# saves the ones that are really Texinfo-related files. .?o? catches
|
||||
# many files: .toc, .log, LaTeX tables and lists, FiXme's .lox, maybe more.
|
||||
for this_file in "$1".?o? "$1".aux "$1".?? "$1".idx; do
|
||||
# If file is empty, skip it.
|
||||
test -s "$this_file" || continue
|
||||
# If the file is not suitable to be an index or xref file, don't
|
||||
# process it. The file can't be if its first character is not a
|
||||
# backslash or single quote.
|
||||
first_character=`sed -n '1s/^\(.\).*$/\1/p;q' $this_file`
|
||||
if test "x$first_character" = "x\\" \
|
||||
|| test "x$first_character" = "x'"; then
|
||||
xref_files="$xref_files ./$this_file"
|
||||
fi
|
||||
done
|
||||
echo "$xref_files"
|
||||
EOF
|
||||
chmod 500 $get_xref_files
|
||||
|
||||
# File descriptor usage:
|
||||
# 0 standard input
|
||||
# 1 standard output (--verbose messages)
|
||||
# 2 standard error
|
||||
# 3 some systems may open it to /dev/tty
|
||||
# 4 used on the Kubota Titan
|
||||
# 5 tools output (turned off by --quiet)
|
||||
|
||||
# Tools' output. If quiet, discard, else redirect to the message flow.
|
||||
if test "$quiet" = t; then
|
||||
exec 5>/dev/null
|
||||
else
|
||||
exec 5>&1
|
||||
fi
|
||||
|
||||
# Enable tracing
|
||||
test "$debug" = t && set -x
|
||||
|
||||
#
|
||||
# TeXify files.
|
||||
|
||||
for command_line_filename in ${1+"$@"}; do
|
||||
$verbose "Processing $command_line_filename ..."
|
||||
|
||||
# If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
|
||||
# prepend `./' in order to avoid that the tools take it as an option.
|
||||
echo "$command_line_filename" | egrep '^(/|[A-z]:/)' >/dev/null \
|
||||
|| command_line_filename="./$command_line_filename"
|
||||
|
||||
# See if the file exists. If it doesn't we're in trouble since, even
|
||||
# though the user may be able to reenter a valid filename at the tex
|
||||
# prompt (assuming they're attending the terminal), this script won't
|
||||
# be able to find the right xref files and so forth.
|
||||
if test ! -r "$command_line_filename"; then
|
||||
echo "$0: Could not read $command_line_filename, skipping." >&2
|
||||
continue
|
||||
fi
|
||||
|
||||
# Get the name of the current directory. We want the full path
|
||||
# because in clean mode we are in tmp, in which case a relative
|
||||
# path has no meaning.
|
||||
filename_dir=`echo $command_line_filename | sed 's!/[^/]*$!!;s!^$!.!'`
|
||||
filename_dir=`cd "$filename_dir" >/dev/null && pwd`
|
||||
|
||||
# Strip directory part but leave extension.
|
||||
filename_ext=`basename "$command_line_filename"`
|
||||
# Strip extension.
|
||||
filename_noext=`echo "$filename_ext" | sed 's/\.[^.]*$//'`
|
||||
ext=`echo "$filename_ext" | sed 's/^.*\.//'`
|
||||
|
||||
# _src. Use same basename since we want to generate aux files with
|
||||
# the same basename as the manual. If --expand, then output the
|
||||
# macro-expanded file to here, else copy the original file.
|
||||
tmpdir_src=$tmpdir/src
|
||||
filename_src=$tmpdir_src/$filename_noext.$ext
|
||||
|
||||
# _xtr. The file with the user's extra commands.
|
||||
tmpdir_xtr=$tmpdir/xtr
|
||||
filename_xtr=$tmpdir_xtr/$filename_noext.$ext
|
||||
|
||||
# _bak. Copies of the previous xref files (another round is run if
|
||||
# they differ from the new one).
|
||||
tmpdir_bak=$tmpdir/bak
|
||||
|
||||
# Make all those directories and give up if we can't succeed.
|
||||
mkdir $tmpdir_src $tmpdir_xtr $tmpdir_bak || exit 1
|
||||
|
||||
# Source file might include additional sources.
|
||||
# We want `.:$orig_pwd' before anything else. (We'll add `.:' later
|
||||
# after all other directories have been turned into absolute paths.)
|
||||
# `.' goes first to ensure that any old .aux, .cps,
|
||||
# etc. files in ${directory} don't get used in preference to fresher
|
||||
# files in `.'. Include orig_pwd in case we are in clean mode, where
|
||||
# we've cd'd to a temp directory.
|
||||
common="$orig_pwd$path_sep$filename_dir$path_sep$txincludes"
|
||||
TEXINPUTS="$common$TEXINPUTS_orig"
|
||||
INDEXSTYLE="$common$INDEXSTYLE_orig"
|
||||
|
||||
# Convert relative paths to absolute paths, so we can run in another
|
||||
# directory (e.g., in --clean mode, or during the macro-support
|
||||
# detection.)
|
||||
#
|
||||
# Empty path components are meaningful to tex. We rewrite them
|
||||
# as `EMPTY' so they don't get lost when we split on $path_sep.
|
||||
TEXINPUTS=`echo $TEXINPUTS |sed 's/^:/EMPTY:/;s/:$/:EMPTY/;s/::/:EMPTY:/g'`
|
||||
INDEXSTYLE=`echo $INDEXSTYLE |sed 's/^:/EMPTY:/;s/:$/:EMPTY/;s/::/:EMPTY:/g'`
|
||||
save_IFS=$IFS
|
||||
IFS=$path_sep
|
||||
set x $TEXINPUTS; shift
|
||||
TEXINPUTS=.
|
||||
for dir
|
||||
do
|
||||
case $dir in
|
||||
EMPTY)
|
||||
TEXINPUTS=$TEXINPUTS$path_sep
|
||||
;;
|
||||
[\\/]* | ?:[\\/]*) # Absolute paths don't need to be expansed.
|
||||
TEXINPUTS=$TEXINPUTS$path_sep$dir
|
||||
;;
|
||||
*)
|
||||
abs=`cd "$dir" && pwd` && TEXINPUTS=$TEXINPUTS$path_sep$abs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
set x $INDEXSTYLE; shift
|
||||
INDEXSTYLE=.
|
||||
for dir
|
||||
do
|
||||
case $dir in
|
||||
EMPTY)
|
||||
INDEXSTYLE=$INDEXSTYLE$path_sep
|
||||
;;
|
||||
[\\/]* | ?:[\\/]*) # Absolute paths don't need to be expansed.
|
||||
INDEXSTYLE=$INDEXSTYLE$path_sep$dir
|
||||
;;
|
||||
*)
|
||||
abs=`cd "$dir" && pwd` && INDEXSTYLE=$INDEXSTYLE$path_sep$abs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
IFS=$save_IFS
|
||||
|
||||
# If the user explicitly specified the language, use that.
|
||||
# Otherwise, if the first line is \input texinfo, assume it's texinfo.
|
||||
# Otherwise, guess from the file extension.
|
||||
if test -n "$set_language"; then
|
||||
language=$set_language
|
||||
elif sed 1q "$command_line_filename" | fgrep 'input texinfo' >/dev/null; then
|
||||
language=texinfo
|
||||
else
|
||||
language=
|
||||
fi
|
||||
|
||||
# Get the type of the file (latex or texinfo) from the given language
|
||||
# we just guessed, or from the file extension if not set yet.
|
||||
case ${language:-$filename_ext} in
|
||||
[lL]a[tT]e[xX] | *.ltx | *.tex)
|
||||
# Assume a LaTeX file. LaTeX needs bibtex and uses latex for
|
||||
# compilation. No makeinfo.
|
||||
bibtex=${BIBTEX:-bibtex}
|
||||
makeinfo= # no point in running makeinfo on latex source.
|
||||
texindex=${MAKEINDEX:-makeindex}
|
||||
if test $oformat = dvi; then
|
||||
tex=${LATEX:-latex}
|
||||
else
|
||||
tex=${PDFLATEX:-pdflatex}
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
# Assume a Texinfo file. Texinfo files need makeinfo, texindex and tex.
|
||||
bibtex=
|
||||
texindex=${TEXINDEX:-texindex}
|
||||
if test $oformat = dvi; then
|
||||
tex=${TEX:-tex}
|
||||
else
|
||||
tex=${PDFTEX:-pdftex}
|
||||
fi
|
||||
# Unless required by the user, makeinfo expansion is wanted only
|
||||
# if texinfo.tex is too old.
|
||||
if test "$expand" = t; then
|
||||
makeinfo=${MAKEINFO:-makeinfo}
|
||||
else
|
||||
# Check if texinfo.tex performs macro expansion by looking for
|
||||
# its version. The version is a date of the form YEAR-MO-DA.
|
||||
# We don't need to use [0-9] to match the digits since anyway
|
||||
# the comparison with $txiprereq, a number, will fail with non
|
||||
# digits.
|
||||
txiversion_tex=txiversion.tex
|
||||
echo '\input texinfo.tex @bye' >$tmpdir/$txiversion_tex
|
||||
# Run in the tmpdir to avoid leaving files.
|
||||
eval `cd $tmpdir >/dev/null &&
|
||||
$tex $txiversion_tex 2>/dev/null |
|
||||
sed -n 's/^.*\[\(.*\)version \(....\)-\(..\)-\(..\).*$/txiformat=\1 txiversion="\2\3\4"/p'`
|
||||
$verbose "texinfo.tex preloaded as \`$txiformat', version is \`$txiversion' ..."
|
||||
if test "$txiprereq" -le "$txiversion" >/dev/null 2>&1; then
|
||||
makeinfo=
|
||||
else
|
||||
makeinfo=${MAKEINFO:-makeinfo}
|
||||
fi
|
||||
# As long as we had to run TeX, offer the user this convenience
|
||||
if test "$txiformat" = Texinfo; then
|
||||
escape=@
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Expand macro commands in the original source file using Makeinfo.
|
||||
# Always use `end' footnote style, since the `separate' style
|
||||
# generates different output (arguably this is a bug in -E).
|
||||
# Discard main info output, the user asked to run TeX, not makeinfo.
|
||||
if test -n "$makeinfo"; then
|
||||
$verbose "Macro-expanding $command_line_filename to $filename_src ..."
|
||||
sed -f $comment_iftex_sed "$command_line_filename" \
|
||||
| $makeinfo --footnote-style=end -I "$filename_dir" $miincludes \
|
||||
-o /dev/null --macro-expand=- \
|
||||
| sed -f $uncomment_iftex_sed >"$filename_src"
|
||||
filename_input=$filename_src
|
||||
fi
|
||||
|
||||
# If makeinfo failed (or was not even run), use the original file as input.
|
||||
if test $? -ne 0 \
|
||||
|| test ! -r "$filename_src"; then
|
||||
$verbose "Reverting to $command_line_filename ..."
|
||||
filename_input=$filename_dir/$filename_ext
|
||||
fi
|
||||
|
||||
# Used most commonly for @finalout, @smallbook, etc.
|
||||
if test -n "$textra"; then
|
||||
$verbose "Inserting extra commands: $textra"
|
||||
sed '/^@setfilename/a\
|
||||
'"$textra" "$filename_input" >$filename_xtr
|
||||
filename_input=$filename_xtr
|
||||
fi
|
||||
|
||||
# If clean mode was specified, then move to the temporary directory.
|
||||
if test "$clean" = t; then
|
||||
$verbose "cd $tmpdir_src"
|
||||
cd "$tmpdir_src" || exit 1
|
||||
fi
|
||||
|
||||
while :; do # will break out of loop below
|
||||
orig_xref_files=`$get_xref_files "$filename_noext"`
|
||||
|
||||
# Save copies of originals for later comparison.
|
||||
if test -n "$orig_xref_files"; then
|
||||
$verbose "Backing up xref files: `echo $orig_xref_files | sed 's|\./||g'`"
|
||||
cp $orig_xref_files $tmpdir_bak
|
||||
fi
|
||||
|
||||
# Run bibtex on current file.
|
||||
# - If its input (AUX) exists.
|
||||
# - If AUX contains both `\bibdata' and `\bibstyle'.
|
||||
# - If some citations are missing (LOG contains `Citation').
|
||||
# or the LOG complains of a missing .bbl
|
||||
#
|
||||
# We run bibtex first, because I can see reasons for the indexes
|
||||
# to change after bibtex is run, but I see no reason for the
|
||||
# converse.
|
||||
#
|
||||
# Don't try to be too smart. Running bibtex only if the bbl file
|
||||
# exists and is older than the LaTeX file is wrong, since the
|
||||
# document might include files that have changed. Because there
|
||||
# can be several AUX (if there are \include's), but a single LOG,
|
||||
# looking for missing citations in LOG is easier, though we take
|
||||
# the risk to match false messages.
|
||||
if test -n "$bibtex" \
|
||||
&& test -r "$filename_noext.aux" \
|
||||
&& test -r "$filename_noext.log" \
|
||||
&& (grep '^\\bibdata[{]' "$filename_noext.aux" \
|
||||
&& grep '^\\bibstyle[{]' "$filename_noext.aux" \
|
||||
&& (grep 'Warning:.*Citation.*undefined' "$filename_noext.log" \
|
||||
|| grep 'No file .*\.bbl\.' "$filename_noext.log")) \
|
||||
>/dev/null 2>&1; \
|
||||
then
|
||||
$verbose "Running $bibtex $filename_noext ..."
|
||||
if $bibtex "$filename_noext" >&5; then :; else
|
||||
echo "$0: $bibtex exited with bad status, quitting." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# What we'll run texindex on -- exclude non-index files.
|
||||
# Since we know index files are last, it is correct to remove everything
|
||||
# before .aux and .?o?. But don't really do <anything>o<anything>
|
||||
# -- don't match whitespace as <anything>.
|
||||
# Otherwise, if orig_xref_files contains something like
|
||||
# foo.xo foo.whatever
|
||||
# the space after the o will get matched.
|
||||
index_files=`echo "$orig_xref_files" \
|
||||
| sed "s!.*\.aux!!g;
|
||||
s!./$filename_noext\.[^ ]o[^ ]!!g;
|
||||
s/^[ ]*//;s/[ ]*$//"`
|
||||
# Run texindex (or makeindex) on current index files. If they
|
||||
# already exist, and after running TeX a first time the index
|
||||
# files don't change, then there's no reason to run TeX again.
|
||||
# But we won't know that if the index files are out of date or
|
||||
# nonexistent.
|
||||
if test -n "$texindex" && test -n "$index_files"; then
|
||||
$verbose "Running $texindex $index_files ..."
|
||||
if $texindex $index_files 2>&5 1>&2; then :; else
|
||||
echo "$0: $texindex exited with bad status, quitting." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Finally, run TeX.
|
||||
# Prevent $ESCAPE from being interpreted by the shell if it happens
|
||||
# to be `/'.
|
||||
$batch tex_args="\\${escape}nonstopmode\ \\${escape}input"
|
||||
cmd="$tex $tex_args $filename_input"
|
||||
$verbose "Running $cmd ..."
|
||||
if $cmd >&5; then :; else
|
||||
echo "$0: $tex exited with bad status, quitting." >&2
|
||||
echo "$0: see $filename_noext.log for errors." >&2
|
||||
test "$clean" = t \
|
||||
&& cp "$filename_noext.log" "$orig_pwd"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# Decide if looping again is needed.
|
||||
finished=t
|
||||
|
||||
# LaTeX (and the package changebar) report in the LOG file if it
|
||||
# should be rerun. This is needed for files included from
|
||||
# subdirs, since texi2dvi does not try to compare xref files in
|
||||
# subdirs. Performing xref files test is still good since LaTeX
|
||||
# does not report changes in xref files.
|
||||
if fgrep "Rerun to get" "$filename_noext.log" >/dev/null 2>&1; then
|
||||
finished=
|
||||
fi
|
||||
|
||||
# Check if xref files changed.
|
||||
new_xref_files=`$get_xref_files "$filename_noext"`
|
||||
$verbose "Original xref files = `echo $orig_xref_files | sed 's|\./||g'`"
|
||||
$verbose "New xref files = `echo $new_xref_files | sed 's|\./||g'`"
|
||||
|
||||
# If old and new lists don't at least have the same file list,
|
||||
# then one file or another has definitely changed.
|
||||
test "x$orig_xref_files" != "x$new_xref_files" && finished=
|
||||
|
||||
# File list is the same. We must compare each file until we find
|
||||
# a difference.
|
||||
if test -n "$finished"; then
|
||||
for this_file in $new_xref_files; do
|
||||
$verbose "Comparing xref file `echo $this_file | sed 's|\./||g'` ..."
|
||||
# cmp -s returns nonzero exit status if files differ.
|
||||
if cmp -s "$this_file" "$tmpdir_bak/$this_file"; then :; else
|
||||
# We only need to keep comparing until we find one that
|
||||
# differs, because we'll have to run texindex & tex again no
|
||||
# matter how many more there might be.
|
||||
finished=
|
||||
$verbose "xref file `echo $this_file | sed 's|\./||g'` differed ..."
|
||||
test "$debug" = t && diff -c "$tmpdir_bak/$this_file" "$this_file"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# If finished, exit the loop, else rerun the loop.
|
||||
test -n "$finished" && break
|
||||
done
|
||||
|
||||
# If we were in clean mode, compilation was in a tmp directory.
|
||||
# Copy the DVI (or PDF) file into the directory where the compilation
|
||||
# has been done. (The temp dir is about to get removed anyway.)
|
||||
# We also return to the original directory so that
|
||||
# - the next file is processed in correct conditions
|
||||
# - the temporary file can be removed
|
||||
if test -n "$clean"; then
|
||||
if test -n "$oname"; then
|
||||
dest=$oname
|
||||
else
|
||||
dest=$orig_pwd
|
||||
fi
|
||||
$verbose "Copying $oformat file from `pwd` to $dest"
|
||||
cp -p "./$filename_noext.$oformat" "$dest"
|
||||
cd / # in case $orig_pwd is on a different drive (for DOS)
|
||||
cd $orig_pwd || exit 1
|
||||
fi
|
||||
|
||||
# Remove temporary files.
|
||||
if test "x$debug" = "x"; then
|
||||
$verbose "Removing $tmpdir_src $tmpdir_xtr $tmpdir_bak ..."
|
||||
cd /
|
||||
rm -rf $tmpdir_src $tmpdir_xtr $tmpdir_bak
|
||||
fi
|
||||
done
|
||||
|
||||
$verbose "$0 done."
|
||||
exit 0 # exit successfully, not however we ended the loop.
|
||||
BIN
TBE/msys/1.0/bin/texindex.exe
Normal file
BIN
TBE/msys/1.0/bin/texindex.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/touch.exe
Normal file
BIN
TBE/msys/1.0/bin/touch.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/tr.exe
Normal file
BIN
TBE/msys/1.0/bin/tr.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/true.exe
Normal file
BIN
TBE/msys/1.0/bin/true.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/uname.exe
Normal file
BIN
TBE/msys/1.0/bin/uname.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/uniq.exe
Normal file
BIN
TBE/msys/1.0/bin/uniq.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/vi
Normal file
8
TBE/msys/1.0/bin/vi
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: vi
|
||||
|
||||
exec vim "$@"
|
||||
8
TBE/msys/1.0/bin/view
Normal file
8
TBE/msys/1.0/bin/view
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is a part of Minimal SYStem
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: view
|
||||
|
||||
exec vim -R "$@"
|
||||
BIN
TBE/msys/1.0/bin/vim.exe
Normal file
BIN
TBE/msys/1.0/bin/vim.exe
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/bin/wc.exe
Normal file
BIN
TBE/msys/1.0/bin/wc.exe
Normal file
Binary file not shown.
8
TBE/msys/1.0/bin/which
Normal file
8
TBE/msys/1.0/bin/which
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2002, Earnie Boyd
|
||||
# mailto:earnie@users.sf.net
|
||||
# This file is part of MSYS
|
||||
# http://www.mingw.org/msys.shtml
|
||||
# File: which
|
||||
|
||||
type -p $1
|
||||
BIN
TBE/msys/1.0/bin/xargs.exe
Normal file
BIN
TBE/msys/1.0/bin/xargs.exe
Normal file
Binary file not shown.
340
TBE/msys/1.0/doc/msys/COPYING
Normal file
340
TBE/msys/1.0/doc/msys/COPYING
Normal file
@@ -0,0 +1,340 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
|
||||
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 of the License, 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
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
482
TBE/msys/1.0/doc/msys/COPYING.LIB
Normal file
482
TBE/msys/1.0/doc/msys/COPYING.LIB
Normal file
@@ -0,0 +1,482 @@
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
MA 02111-1307, USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
46
TBE/msys/1.0/doc/msys/CYGWIN_LICENSE
Normal file
46
TBE/msys/1.0/doc/msys/CYGWIN_LICENSE
Normal file
@@ -0,0 +1,46 @@
|
||||
--------------------------------------------------------------------------
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License (GPL) as published by
|
||||
the Free Software Foundation; either version 2 of the License, 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.
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
*** NOTE ***
|
||||
|
||||
In accordance with section 10 of the GPL, Cygnus permits programs whose
|
||||
sources are distributed under a license that complies with the Open
|
||||
Source definition to be linked with libcygwin.a without libcygwin.a
|
||||
itself causing the resulting program to be covered by the GNU GPL.
|
||||
|
||||
This means that you can port an Open Source(tm) application to cygwin,
|
||||
and distribute that executable as if it didn't include a copy of
|
||||
libcygwin.a linked into it. Note that this does not apply to the cygwin
|
||||
DLL itself. If you distribute a (possibly modified) version of the DLL
|
||||
you must adhere to the terms of the GPL, i.e., you must provide sources
|
||||
for the cygwin DLL.
|
||||
|
||||
See http://www.opensource.org/osd.html for the precise Open Source
|
||||
Definition referenced above.
|
||||
|
||||
If you have questions about any of the above or would like to arrange
|
||||
for other licensing terms, please contact Cygnus using the information
|
||||
given below:
|
||||
|
||||
Cygnus Solutions
|
||||
1325 Chesapeake Terrace
|
||||
Sunnyvale, CA 94089
|
||||
USA
|
||||
|
||||
+1 408 542 9600
|
||||
hotline: +1 408 542 9601
|
||||
email: info@cygnus.com
|
||||
fax: +1 408 542 9699
|
||||
BIN
TBE/msys/1.0/doc/msys/MSYS-1.0.9-changes.rtf
Normal file
BIN
TBE/msys/1.0/doc/msys/MSYS-1.0.9-changes.rtf
Normal file
Binary file not shown.
BIN
TBE/msys/1.0/doc/msys/MSYS_LICENSE.rtf
Normal file
BIN
TBE/msys/1.0/doc/msys/MSYS_LICENSE.rtf
Normal file
Binary file not shown.
12
TBE/msys/1.0/doc/msys/MSYS_MISSION
Normal file
12
TBE/msys/1.0/doc/msys/MSYS_MISSION
Normal file
@@ -0,0 +1,12 @@
|
||||
File: MSYS_MISSION
|
||||
Copyright (C): Earnie Boyd <earnie@users.sf.net>
|
||||
Distribution: See MSYS_LICENSE
|
||||
Revision: 1.0.2
|
||||
Revision Date: 2002.01.25
|
||||
|
||||
The mission or goal of MSYS is to provide a minimal POSIX environment for
|
||||
configuring and building MinGW ports and code. The MSYS developers have taken
|
||||
the Cygwin source and modified it to fit the needs for MinGW and MSYS. The very
|
||||
minimum of binaries needed to provide an efficient means to natively configure
|
||||
and make is what the developers have strived to distribute. Therefore they do
|
||||
not encourage the use of MSYS as a runtime.
|
||||
78
TBE/msys/1.0/doc/msys/MSYS_VS_CYGWIN
Normal file
78
TBE/msys/1.0/doc/msys/MSYS_VS_CYGWIN
Normal file
@@ -0,0 +1,78 @@
|
||||
File: MSYS_VS_CYGWIN
|
||||
Copyright (C): 2001: Earnie Boyd <earnie@users.sf.net>
|
||||
Distribution Rights: See MSYS_LICENSE
|
||||
File Revision: 1.0.4
|
||||
File Revision Date: 2002.01.25
|
||||
|
||||
mount: The mount command is only used to display all mount points. The mount
|
||||
points for the very important are automounted. Nothing is stored in the Win32
|
||||
registry database. If you wish to add other mount points, ones that aren't
|
||||
auto mounted, then you may do so in the /etc/fstab file. i
|
||||
|
||||
ROOTPATH "/": The "/" auto mount point is currently a reference to the parent
|
||||
directory of the directory containing the msys-1.0.dll file.
|
||||
<strikeout>In later releases
|
||||
the / will be a reference to a pseudo device that points to the mount points.
|
||||
I.E. in a later release it is planned that `ls /' will list the mount points.
|
||||
</strikeout> I plan to do something but it won't be as previously stated.
|
||||
|
||||
/bin: The /bin auto mount point is a reference to the directory containing the
|
||||
msys-1.0.dll file. I.E. if the path to msys-1.0.dll is
|
||||
C:\msys\1.0\bin\msys-1.0.dll then /bin resolves to C:\msys\1.0\bin.
|
||||
|
||||
/tmp: The /tmp auto mount point is a reference to the directory that is
|
||||
referenced by the Win32 TMP environment variable. I.E. if the win32 TMP
|
||||
environment variable value is C:\TEMP then the /tmp mount point resolves to
|
||||
C:\TEMP.
|
||||
|
||||
/usr: The /usr auto mount point is a reference to the parent directory of the
|
||||
directory containing the msys-1.0.dll file. I.E. if the path to msys-1.0.dll
|
||||
is C:\msys\1.0\bin\msys-1.0.dll then the /usr mount point resolves to
|
||||
C:\msys\1.0.
|
||||
|
||||
/cygdrive: There is no such item. All devices and mapped shares are auto
|
||||
mounted with the device letter as the mount point. E.G.: the C:\ drive is
|
||||
referenced as /c.
|
||||
|
||||
/etc/fstab: If this file exists then it is read for user specified mount
|
||||
points. The form of the record is [PHYSICAL PATH][WHITE SPACE][MOUNT POINT]
|
||||
where [WHITE SPACE] is one or more spaces and/or tabs.
|
||||
|
||||
binary vs text: File processing mode is set to binary. This is not changeable.
|
||||
I had originally planned to set this to text mode processing but ran into
|
||||
various problems of which volumes have been written in the Cygwin archives.
|
||||
For release 1.0 of MSYS this means that you cannot have \r\n line endings on
|
||||
text files. In a future release it is planned to "Do The Right Thing" and
|
||||
predetermine the type of file being opened and set text or binary processing
|
||||
as appropriate for reading files. Or, predetermine the type of file and as the
|
||||
file is being read remove the \r from the end of the line.
|
||||
|
||||
uname -s: The default system name is returned as MSYS_NT-4.0, if you're on
|
||||
NT 4.0. However you could export MSYSTEM=MINGW32 as change the returned value
|
||||
for `uname -s' to MINGW32_NT-4.0. This is done to aid the use of MSYS with
|
||||
MinGW and configuration scripts will determine that it is a MINGW32 build
|
||||
system.
|
||||
|
||||
--added in version 1.0.2--
|
||||
/bin and /usr/bin: These are currently reserved for MSYS programs only (MSYS
|
||||
programs are progrms that depend on the msys-1.0.dll file). It will be unlikely
|
||||
that non-MSYS programs will execute properly if they exist in /bin and /usr/bin.
|
||||
|
||||
POSIX paths in arguments: POSIX paths passed as arguments on the command line
|
||||
are now converted to WIN32 paths. This is only true for programs that don't
|
||||
exist in the /bin and /usr/bin paths. POSIX paths are determined by i) a '/'
|
||||
character in the argument and ii) the argument must not be two characters long.
|
||||
The two character filter is done so that WIN32 parameters of the type /x can be
|
||||
passed to the WIN32 program. This allows you to do `write /p /mydocuments/abc'
|
||||
and the write.exe program found in the c:\WINNT\System32 directory on my
|
||||
system can print to the printer on lpt1 the c:\msys\1.0\mydocments\abc file.
|
||||
|
||||
--added in version 1.0.3--
|
||||
More robust checking for filesystem paths on arguments.
|
||||
|
||||
--added in version 1.0.4--
|
||||
Symlink resolution.
|
||||
diff, diff3 and head to the distribution.
|
||||
--removed in version 1.0.4--
|
||||
Requirement that the path must begin with /.
|
||||
bash from the distribution.
|
||||
BIN
TBE/msys/1.0/doc/msys/MSYS_WELCOME.rtf
Normal file
BIN
TBE/msys/1.0/doc/msys/MSYS_WELCOME.rtf
Normal file
Binary file not shown.
96
TBE/msys/1.0/doc/msys/README.rtf
Normal file
96
TBE/msys/1.0/doc/msys/README.rtf
Normal file
@@ -0,0 +1,96 @@
|
||||
{\rtf1\ansi\ansicpg1252\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fmodern\fprq1 Courier New;}{\f3\froman Times New Roman;}{\f4\fmodern\fprq1 Lucida Console;}}
|
||||
{\colortbl\red0\green0\blue0;}
|
||||
\deflang1033\horzdoc{\*\fchars }{\*\lchars }\pard\tx2610\plain\f2\fs20\b\i File:\plain\f2\fs20\i \tab \plain\f2\fs20 README
|
||||
\par \plain\f2\fs20\b\i Copyright (C):\plain\f2\fs20 \tab 2001, 2002 Earnie Boyd <earnie@users.sf.net>
|
||||
\par \plain\f2\fs20\b\i Distribution:\plain\f2\fs20 \tab See MSYS_LICENSE
|
||||
\par \plain\f2\fs20\b\i MSYS Revision:\plain\f2\fs20 \tab 1.0.9
|
||||
\par \plain\f2\fs20\b\i MSYS Revision date:\plain\f2\fs20\i \tab \plain\lang1024\f2\fs20 October 31, 2002\plain\f2\fs20
|
||||
\par \pard\qc\tx2610\plain\f2\fs20\i
|
||||
\par \pard\plain\f2\fs20\b\i Preface:\plain\f2\fs20
|
||||
\par Ok, you have installed msys and now you're reading this to understand how to get started. However, I must first explain some important facts about Msys. Msys file system bindings (mounts) are automatic and happens as described in table 1. These automatic file system bindings are not changable by the user. User defined file system bindings can be created by specifying them in the /etc/fstab directory as explained in table 2.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i TABLE 1 - Automatic file system maps:\plain\f2\fs20
|
||||
\par \plain\f4\fs16 + ---------------------------------------------------------------------------- +
|
||||
\par | The automatic mounts are relative to where the msys-1.0.dll (DLL) is located |
|
||||
\par | such that the following is true: |
|
||||
\par | |
|
||||
\par | / - is the parent directory of the directory containing the DLL |
|
||||
\par | /bin - the direcotry containing the DLL |
|
||||
\par | /usr - the parent directory of the directory containing the DLL |
|
||||
\par | /usr/bin - the directory containing the DLL |
|
||||
\par | /tmp - the value of the TMP environment variable |
|
||||
\par | /c - C:\\ |
|
||||
\par | /d - D:\\ |
|
||||
\par | . . . |
|
||||
\par | /z - Z:\\ |
|
||||
\par | |
|
||||
\par + ---------------------------------------------------------------------------- +
|
||||
\par \plain\f2\fs20
|
||||
\par \plain\f2\fs20\b\i TABLE 2 - /etc/fstab layout:\plain\f2\fs20
|
||||
\par \plain\f4\fs16 + ---------------------------------------------------------------------------- +
|
||||
\par | The record format for the /etc/fstab is current a simple one. I need to |
|
||||
\par | work on the syntax parsing more so that things like embedded spaces work. |
|
||||
\par | If you wish to map a path with spaces you must use the DOS style name. |
|
||||
\par | |
|
||||
\par | The record format is as follows: |
|
||||
\par | d:/some/foo/path /bar |
|
||||
\par | |
|
||||
\par | As you can see this is simply the Win32 path mapped to a mount point. It is |
|
||||
\par | unix practice to have the /bar created as an empty directory before it can |
|
||||
\par | mount the mount point. Msys doesn't force this but it will be to advantage |
|
||||
\par | if you do. Some programs, e.g. find, and some operations, e.g. tab |
|
||||
\par | operate better if the physical directory is present for those mount points. |
|
||||
\par | |
|
||||
\par | If you create a /etc/fstab record that maps to an automatic mount point Msys |
|
||||
\par | will remove it when it adds the automatic point. This means that at some |
|
||||
\par | small moment in time your mount point actually exists. However it doesn't |
|
||||
\par | exist long enough to be of any use to you. |
|
||||
\par | |
|
||||
\par + ---------------------------------------------------------------------------- +
|
||||
\par \plain\f2\fs20
|
||||
\par Msys will convert POSIX paths that are used as arguments to Win32 paths. This is done for any executable not in /bin and /usr/bin. If the executable is dependant on the msys-1.0.dll then it must be located in the /bin or /usr/bin directory. This means that you now have a POSIX environment that will automagically do the right thing w.r.t. changing the paths passed as arguments. Arguments beginning with a // are considered to be Win32 style switches and will be passed to the program with // converted to / to allow for the command.com/cmd.exe (Win32) style switch. An example of a Win32 style switch is `write //p /mydocs/msys-rocks.' In this example write (a.k.a. WordPad) exists in the c:\\winnt\\system32 path on my system. The //p becomes /p which tells write to print the document. And mydocs/msys-rocks converts to c:\\msys\\1.0\\mydocs\\msys-rocks so that write can find it.
|
||||
\par \plain\f2\fs20\b\i
|
||||
\par STARTING Msys:
|
||||
\par \plain\f2\fs20 Starting Msys should just be a matter of clicking on the MSYS icon on your desktop or Start menu. If you have the File Manager window open, you may now click on it and have it start also. Doing these presents you with a console window within which you may enter commands.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i Working with MinGW:
|
||||
\par \plain\f2\fs20 If you already have MinGW installed then simply bind the path to MinGW to the /mingw mount point in the /etc/fstab as described above. If you don't have MinGW installed already then simply unarchive the MinGW tar.gz file in the /mingw directory. \plain\f2\fs20\b\ul DO NOT\plain\f2\fs20 unarchive the MinGW tar.gz file in the / directory.
|
||||
\par \plain\f2\fs20\b\i
|
||||
\par Working with other products:
|
||||
\par \plain\f2\fs20 I find that the easiest thing for working with other products, such as Microsoft Office, is to create a script pointing to the executable. An example of a script for Microsoft Word on my system looks like the example in Table 3. I have this stored in my /usr/local/bin directory with a filename of word. Now all I need to do to edit a word document is `word /mydoc/proposal.doc' and voila up pops a Microsoft Word window with my document in it.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i Table 3 - Script to execute MS Word from the command line:
|
||||
\par \plain\f4\fs16 + ---------------------------------------------------------------------------- +
|
||||
\par + #!/bin/sh +
|
||||
\par + start '/c/Program\\ Files/Microsoft\\ Office/Office/WINWORD' $@ +
|
||||
\par + ---------------------------------------------------------------------------- +
|
||||
\par \plain\f2\fs20\b\i
|
||||
\par Other documentation:\plain\f2\fs20
|
||||
\par Be sure to read the MSYS_ series. I have tried to document how I'm changing the cygwin code to allow us to use it with MSYS. These can be found in the /doc/msys directory, or you can find them in the /usr/doc/msys directory.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i Using binaries with different runtimes:\plain\f2\fs20
|
||||
\par You can't use Cygwin binaries at all and if you try you'll most likely just cause the processes to "hang". You can use Win32 native binaries but you should put them into the /mingw/bin or your /usr/local/bin directory tree. If you wish to replace an MSYS binary with a native win32 version then delete or rename the /bin version.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i Effective use of the clipboard:
|
||||
\par \plain\f2\fs20 You may use the clipboard with MSYS. When using rxvt (the default installation) as the terminal, just selecting with data with click and drag of the mouse, copies the data to the clipboard. To paste the clipboard data in the rxvt terminal you can Shift and Left Click or press both mouse buttons if 3 button mouse emulation is on or press the mouse wheel. To copy the highlighted data to your favorite windows email client the you use the paste options for that program, typically Ctrl-V. You can also use interesting bash shell commands such as `cat /dev/clipboard > /tmp/foo' or `less -f /dev/clipboard'. Data entered into the clipboard by non-MSYS programs can also be used by MSYS programs and vice versa.\plain\f2\fs20\b\i
|
||||
\par
|
||||
\par Bug Reports:\plain\f2\fs20
|
||||
\par Send your bug reports to MinGW-msys@lists.sf.net.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i User Posts:\plain\f2\fs20
|
||||
\par MinGW-msys@lists.sf.net
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i Disclaimer:
|
||||
\par \plain\f2\fs20 Products mentioned in this and other documents are solely owned by their trademark owners. We claim no rights to those trademarks and any mention of those products are for example only. Your uses of those products are your responsibility and no endorsement of any mentioned product is being given.
|
||||
\par
|
||||
\par \plain\f2\fs20\b\i Change History:
|
||||
\par \plain\f2\fs20 Version 1.0.3 added checks for paths following an `=' and `-X' where X
|
||||
\par is a program switch.
|
||||
\par
|
||||
\par Version 1.0.4 added symlink resolution, removed the dependancy that the pathmust begin with a / and removed bash.exe since sh.exe is bash.exe anyway. Also added diff, diff3 and head to the distribution. An MSYS icon exists in the rxvt binary.
|
||||
\par
|
||||
\par Version 1.0.5 is a bug fix release that filters out the conversion of quoted relative paths. So that -DSOME_CONSTANT=\\"1.0.5\\" can be properly input into gcc. Also fixed the problem with sh.exe reading /etc/profile with \\r\\n line endings. Added the binaries true.exe, false.exe, tail.exe and fold.exe. Updated the gmake binary to the Cygwin version including the --win32 switch. I am suggesting to use this version of make and have copied /bin/gmake.exe to /bin/make (yes without the .exe). If you wish to go back to the "native" version of make typing make.exe will get you there.
|
||||
\par
|
||||
\par Version 1.0.6 through current: See the appropriate MSYS-<version>-changes.rtf document.
|
||||
\par }
|
||||
| ||||