Apply our local changes bringing us up to 3.95 (for which there is no
release tar), and add build glue.
This commit is contained in:
parent
68c5b58147
commit
592de26897
|
@ -0,0 +1,3 @@
|
|||
# $NetBSD: Makefile,v 1.1 2016/01/14 21:13:20 christos Exp $
|
||||
SUBDIR = bin
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,113 @@
|
|||
# $NetBSD: Makefile,v 1.1 2016/01/14 21:13:20 christos Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
#
|
||||
# Makefile for building a standalone send-pr.
|
||||
#
|
||||
|
||||
srcdir= ${.CURDIR}/../dist/send-pr
|
||||
bindir= /usr/bin
|
||||
datadir= /usr/share
|
||||
.PATH: ${srcdir}
|
||||
|
||||
#
|
||||
# Begin CONFIGURATION SECTION
|
||||
#
|
||||
VERSION=3.95
|
||||
|
||||
# Where the GNATS database and master configuration stuff lives.
|
||||
GNATS_ROOT =
|
||||
|
||||
# Email address to which people should submit bugs.
|
||||
GNATS_ADDR = gnats-bugs@NetBSD.org
|
||||
|
||||
# The default release for this send-pr.
|
||||
DEFAULT_RELEASE = `uname -s` `uname -r`
|
||||
|
||||
# The default organization for this send-pr.
|
||||
DEFAULT_ORGANIZATION =
|
||||
|
||||
# The default GNATS site for send-pr.
|
||||
GNATS_SITE = netbsd
|
||||
|
||||
# The submitter-id for your site.
|
||||
SUBMITTER = net
|
||||
|
||||
# Command line to use for mailer
|
||||
MAIL_AGENT = /usr/sbin/sendmail -oi -t
|
||||
|
||||
# Command line to display the passwd database
|
||||
PASSWD = cat /etc/passwd
|
||||
|
||||
# Echo(1) style
|
||||
ECHON = bsd
|
||||
|
||||
#
|
||||
# END OF CONFIGURATION SECTION
|
||||
#
|
||||
|
||||
BINDIR= ${bindir}
|
||||
LIBDIR= ${datadir}
|
||||
MAN= send-pr.1
|
||||
|
||||
CLEANFILES= send-pr send-pr.1 send-pr.el install-sid
|
||||
|
||||
realall: send-pr send-pr.1 send-pr.el install-sid
|
||||
|
||||
send-pr: send-pr.sh Makefile
|
||||
${_MKTARGET_CREATE}
|
||||
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
|
||||
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
|
||||
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
|
||||
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
|
||||
-e 's,xSUBMITTERx,$(SUBMITTER),' \
|
||||
-e 's,xECHONx,$(ECHON),' \
|
||||
-e 's,xMAIL_AGENTx,$(MAIL_AGENT),' \
|
||||
-e 's,xPASSWDx,$(PASSWD),' \
|
||||
-e 's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
|
||||
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
|
||||
-e 's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh > $@-t
|
||||
mv -f $@-t $@
|
||||
chmod 755 $@
|
||||
|
||||
install-sid: install-sid.sh Makefile
|
||||
${_MKTARGET_CREATE}
|
||||
${TOOL_SED} -e 's,xBINDIRx,$(bindir),g' \
|
||||
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
|
||||
mv -f $@-t $@
|
||||
chmod 755 $@
|
||||
|
||||
send-pr.el: send-pr-el.in Makefile
|
||||
${_MKTARGET_CREATE}
|
||||
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
|
||||
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
|
||||
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
|
||||
-e 's,xDATADIRx,$(datadir),' \
|
||||
-e 's,xSUBMITTERx,$(SUBMITTER),' \
|
||||
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
|
||||
$(srcdir)/send-pr-el.in \
|
||||
> $@-t
|
||||
mv -f $@-t $@
|
||||
|
||||
send-pr.1: send-pr.man Makefile
|
||||
${_MKTARGET_CREATE}
|
||||
${TOOL_SED} -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
|
||||
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
|
||||
mv -f $@-t $@
|
||||
|
||||
FILES=send-pr install-sid
|
||||
FILESMODE_send-pr=${BINMODE}
|
||||
FILESMODE_install-sid=${BINMODE}
|
||||
.if ${MKSHARE} != "no"
|
||||
FILES+=categories send-pr.el
|
||||
FILESDIR_send-pr.el=${LIBDIR}/gnats
|
||||
FILESDIR_categories=${LIBDIR}/gnats
|
||||
FILESNAME_categories=${GNATS_SITE}
|
||||
.endif
|
||||
|
||||
TEXINFO= send-pr.texi
|
||||
INFOFLAGS= -I${.CURDIR}
|
||||
|
||||
.include <bsd.info.mk>
|
||||
.include <bsd.prog.mk>
|
|
@ -1,3 +1,194 @@
|
|||
Thu Aug 3 13:32:39 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* Makefile.in (VERSION): Up to 3.95.
|
||||
|
||||
Wed Jul 26 18:26:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* Makefile.in (install-gnats-dist): Also put in INSTALL and MANIFEST.
|
||||
|
||||
Mon Jul 17 10:11:11 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* Makefile.in (VERSION): Up to 3.93.
|
||||
|
||||
* Makefile.in (prefix): Use @prefix@, not /usr/local, for the default.
|
||||
|
||||
Thu Jul 13 13:02:52 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* send-pr-el.in (gnats::position-on-field): Add new arg QUIET.
|
||||
Only give the error if QUIET is nil.
|
||||
(gnats::field-contents): Pass T to position-on-field.
|
||||
|
||||
* Makefile.in (VERSION): Update to 3.92.
|
||||
|
||||
Wed Jul 12 12:26:49 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* Makefile.in (EMACS): Define variable to use ../emacs19/src/emacs
|
||||
if it's there.
|
||||
(send-pr.elc): Use that instead of just `emacs'.
|
||||
|
||||
Fri Jul 7 13:43:48 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* aclocal.m4: Use AC_MSG_* for AC_LISPDIR.
|
||||
* configure: Regenerate.
|
||||
|
||||
Thu Jul 6 19:22:53 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* send-pr-el.in (gnats::get-config): Also match `.:' for NetBSD.
|
||||
|
||||
Mon Jun 12 08:32:57 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* Makefile.in (stamp-gnats): Don't depend on ../gnats/Makefile.
|
||||
|
||||
Fri Mar 24 15:04:58 1995 Jason Merrill <jason@phydeaux.cygnus.com>
|
||||
|
||||
* aclocal.m4 (AC_LISPDIR): Tweak quoting to work with bash.
|
||||
* configure: Regenerate.
|
||||
|
||||
Mon Feb 13 02:04:13 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* send-pr.sh: Be a little more elegant about how we set LOGNAME.
|
||||
|
||||
Sun Feb 12 22:59:44 1995 Brendan Kehoe (brendan@cygnus.com)
|
||||
|
||||
* configure.in: Only set GNATS_SITE and GNATS_ADDR if we aren't
|
||||
given environment variables with them set.
|
||||
* configure: Generated new one.
|
||||
|
||||
Fri Feb 3 12:10:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||
|
||||
* send-pr.sh: Added missing ` (backquote) to expression used to
|
||||
determine whether TMPDIR ends in a slash.
|
||||
|
||||
Tue Jan 31 10:48:39 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||
|
||||
* send-pr.sh: Use REPLYTO instead of REPLY_TO. Set REPLYTO to
|
||||
LOGNAME if it is unset.
|
||||
|
||||
Fri Dec 30 16:52:40 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
|
||||
|
||||
* Makefile.in (install-norm): Stop make from printing an error
|
||||
message of send-pr.elc does not exist.
|
||||
|
||||
Thu Oct 6 13:05:19 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* send-pr-el.in (gnats::get-config): Go to point-min after running
|
||||
the shell command on the region.
|
||||
(send-pr::start-up): Likewise, after inserting the site template.
|
||||
|
||||
* send-pr.sh (TMPDIR): If TMPDIR ends in a slash, cut it off to
|
||||
avoid emacs send-pr not working.
|
||||
|
||||
Wed Oct 5 13:11:27 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* send-pr-el.in (send-pr::start-up): Call insert-template instead
|
||||
of running `send-pr -P' every time.
|
||||
(send-pr::template-alist): Declare.
|
||||
(send-pr::insert-template): New function.
|
||||
|
||||
* send-pr-el.in (gnats::get-config): Check get-buffer before using
|
||||
looking-at, since shell-command-on-region wipes it out if there's
|
||||
no output (which will be the case for variables not set in the
|
||||
config file).
|
||||
|
||||
* send-pr-el.in (gnats::find-safe-default-directory): New function.
|
||||
|
||||
Thu Sep 29 18:37:34 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* aclocal.m4 (AC_LISPDIR): Set LISPDIR using commas in the sed,
|
||||
not slashes.
|
||||
* configure: Generate a new one.
|
||||
|
||||
Tue Aug 30 13:55:22 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* aclocal.m4: Change from Jason, to try to use PREFIX on the
|
||||
LISPDIR if possible before going with /usr/local.
|
||||
|
||||
Mon Aug 1 11:31:47 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
|
||||
|
||||
* send-pr-el.in (send-pr::start-up): Always start at the beginning
|
||||
of the buffer when searching for `^SEND-PR:'.
|
||||
|
||||
Sun Jul 17 19:13:17 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* categories: add `dos' for real this time.
|
||||
|
||||
Wed May 11 15:46:48 1994 Bill Cox (bill@rtl.cygnus.com)
|
||||
|
||||
* Makefile.in: Delete install commands which attempt to
|
||||
'chown' the script to user 'gnats', who not exist in
|
||||
the end-user's system.
|
||||
|
||||
Fri May 6 17:40:12 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* categories: add 'dos', 'gcov', 'gasp', and 'install'.
|
||||
|
||||
Thu Apr 21 12:55:52 1994 James Clark (jjc@jclark.com)
|
||||
|
||||
* send-pr.sh (ORGANIZATION): don't use quotes in the ${ORG-"\t$ORG_C"}
|
||||
thing. It tickles a bug in bourne shell.
|
||||
|
||||
Wed Apr 6 17:16:28 1994 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* send-pr-el.in (gnats::get-config): Use shell-command-on-region
|
||||
instead of shell-command.
|
||||
(send-pr::start-up): Ditto.
|
||||
|
||||
Wed Apr 6 17:14:36 1994 Cheryl Bien (bien@aero.org)
|
||||
|
||||
* send-pr.sh (ORIGINATOR): Use awk instead of cut.
|
||||
|
||||
Tue Mar 22 17:12:24 1994 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* send-pr.sh: DATADIR is under $(prefix), not $(exec_prefix).
|
||||
|
||||
Sat Jan 15 19:12:45 1994 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* aclocal.m4 (AC_LISPDIR): Handle case where $(prefix) is not
|
||||
specified on the command line.
|
||||
|
||||
Mon Jan 10 17:21:33 1994 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* send-pr-el.in (send-pr:submit-pr): If called from command line,
|
||||
save buffer on C-c C-c.
|
||||
|
||||
* send-pr.sh: Clean up template.
|
||||
|
||||
* Makefile.in, configure.in: Don't use AC_PROG_INSTALL after all.
|
||||
|
||||
* aclocal.m4 (AC_LISPDIR): Check for --with-lispdir option.
|
||||
|
||||
Fri Jan 7 11:43:02 1994 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* send-pr-el.in (gnats:change-field): If not called interactively,
|
||||
just use the default value.
|
||||
|
||||
* Makefile.in (uninstall): Fix.
|
||||
|
||||
* configure.in: Add call to AC_PROG_INSTALL.
|
||||
|
||||
* Makefile.in (INSTALL*): Use it.
|
||||
|
||||
* send-pr.sh: Only modify GNATS_ADDR if USER_GNATS_SITE is different
|
||||
from GNATS_SITE.
|
||||
|
||||
* send-pr-el.in (send-pr:submit-pr): If the user ran send-pr from the
|
||||
command line with $EDITOR == emacs, don't submit the PR here.
|
||||
(send-pr:::spawn-to-send): Variable to control this behavior.
|
||||
|
||||
Thu Jan 6 22:51:15 1994 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* send-pr-el.in (send-pr::fields): Default for Submitter-Id should
|
||||
be SUBMITTER, not DEFAULT_SUBMITTER.
|
||||
|
||||
* aclocal.m4 (AC_PASSWD): New macro to figure out how to read the
|
||||
passwd database (cat, ypcat, niscat).
|
||||
|
||||
* configure.in: Use it.
|
||||
|
||||
* Makefile.in (PASSWD, send-pr): Use it.
|
||||
|
||||
* send-pr.sh: Use it.
|
||||
|
||||
Fri Dec 10 11:48:44 1993 Jason Merrill (jason@deneb.cygnus.com)
|
||||
|
||||
* Version 3.2
|
||||
|
|
|
@ -43,6 +43,9 @@ SUBMITTER = @SUBMITTER@
|
|||
# Command line to use for mailer
|
||||
MAIL_AGENT = @MAIL_AGENT@
|
||||
|
||||
# Command line to display the passwd database
|
||||
PASSWD = @PASSWD@
|
||||
|
||||
# What to install
|
||||
SEND_PR_INSTALL = install-norm install-categories
|
||||
|
||||
|
@ -61,7 +64,7 @@ MAKEINFO = makeinfo
|
|||
TEXI2DVI = texi2dvi
|
||||
|
||||
INSTALL = $(srcdir)/../install.sh -c
|
||||
INSTALL_PROGRAM = $(INSTALL)
|
||||
INSTALL_PROGRAM = $(INSTALL)
|
||||
INSTALL_DATA = $(INSTALL) -m 644
|
||||
|
||||
CFLAGS = -g
|
||||
|
@ -69,7 +72,15 @@ LDFLAGS = -g
|
|||
|
||||
ECHON = @ECHON@
|
||||
|
||||
prefix = /usr/local
|
||||
EMACS = `if [ -f ./../emacs19/Makefile ] ; then \
|
||||
echo "EMACSLOADPATH=\`cd $(srcdir)/../emacs19/lisp ; pwd\` ; \
|
||||
export EMACSLOADPATH ; \
|
||||
./../emacs19/src/emacs" ; \
|
||||
else \
|
||||
echo emacs ; \
|
||||
fi`
|
||||
|
||||
prefix = @prefix@
|
||||
|
||||
exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix)/bin
|
||||
|
@ -79,7 +90,7 @@ tooldir = $(libdir)
|
|||
program_transform_name =
|
||||
|
||||
# Edit this to be the location of your emacs lisp files.
|
||||
lispdir = $(datadir)/emacs/lisp
|
||||
lispdir = @LISPDIR@
|
||||
|
||||
datadir = $(prefix)/lib
|
||||
mandir = $(prefix)/man
|
||||
|
@ -98,7 +109,7 @@ docdir = $(datadir)/doc
|
|||
|
||||
# End of system configuration section.
|
||||
|
||||
VERSION = 3.2
|
||||
VERSION = 3.95
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
|
@ -111,13 +122,14 @@ states.texi s-usage.texi categ.texi send-pr.sh
|
|||
all: send-pr install-sid send-pr.elc send-pr.1
|
||||
|
||||
send-pr: send-pr.sh Makefile
|
||||
sed -e 's,xVERSIONx,$(VERSION),' \
|
||||
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
|
||||
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
|
||||
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
|
||||
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
|
||||
-e 's,xSUBMITTERx,$(SUBMITTER),' \
|
||||
-e 's,xECHONx,$(ECHON),' \
|
||||
-e 's,xMAIL_AGENTx,$(MAIL_AGENT),' \
|
||||
-e 's,xPASSWDx,$(PASSWD),' \
|
||||
-e 's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
|
||||
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
|
||||
-e 's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh > $@-t
|
||||
|
@ -125,24 +137,24 @@ send-pr: send-pr.sh Makefile
|
|||
chmod 755 $@
|
||||
|
||||
install-sid: install-sid.sh Makefile
|
||||
sed -e 's,xBINDIRx,$(bindir),g' \
|
||||
${TOOL_SED} -e 's,xBINDIRx,$(bindir),g' \
|
||||
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
|
||||
mv $@-t $@
|
||||
chmod 755 $@
|
||||
|
||||
send-pr.el: send-pr-el.in Makefile
|
||||
sed -e 's,xVERSIONx,$(VERSION),' \
|
||||
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
|
||||
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
|
||||
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
|
||||
-e 's,xDATADIRx,$(datadir),' \
|
||||
-e 's,xDEFAULT_SUBMITTERx,$(SUBMITTER),' \
|
||||
-e 's,xSUBMITTERx,$(SUBMITTER),' \
|
||||
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
|
||||
$(srcdir)/send-pr-el.in \
|
||||
> $@-t
|
||||
mv $@-t $@
|
||||
|
||||
send-pr.elc: send-pr.el
|
||||
-PWD=`pwd` emacs -batch -q -f batch-byte-compile send-pr.el
|
||||
-PWD=`pwd` eval $(EMACS) -batch -q -f batch-byte-compile send-pr.el
|
||||
|
||||
install: $(SEND_PR_INSTALL)
|
||||
install-tools: install-norm install-categories
|
||||
|
@ -153,30 +165,35 @@ install-norm all-gnats:
|
|||
$(INSTALL_PROGRAM) install-sid $(bindir)/install-sid
|
||||
$(INSTALL_DATA) send-pr.1 $(man1dir)/send-pr.1
|
||||
$(INSTALL_DATA) send-pr.el $(lispdir)/send-pr.el
|
||||
-$(INSTALL_DATA) send-pr.elc $(lispdir)/send-pr.elc
|
||||
if [ -f send-pr.elc ]; then \
|
||||
$(INSTALL_DATA) send-pr.elc $(lispdir)/send-pr.elc; \
|
||||
else true; fi
|
||||
|
||||
# Install the Cygnus category list for bug reports.
|
||||
install-categories:
|
||||
$(INSTALL_DATA) $(srcdir)/categories $(datadir)/gnats/cygnus
|
||||
|
||||
install-gnats-dist: info
|
||||
install-gnats-dist:
|
||||
$(INSTALL_DATA) $(srcdir)/COPYING $(datadir)/gnats/dist/COPYING
|
||||
$(INSTALL_DATA) $(srcdir)/README $(datadir)/gnats/dist/README
|
||||
sed -e 's/"DEFAULT_RELEASE") ".*"/"DEFAULT_RELEASE") "@''DEFAULT_RELEASE@"/' \
|
||||
-e 's/"DEFAULT_SUBMITTER") ".*"/"DEFAULT_SUBMITTER") "unknown"/' \
|
||||
$(INSTALL_DATA) $(srcdir)/INSTALL $(datadir)/gnats/dist/INSTALL
|
||||
$(INSTALL_DATA) $(srcdir)/MANIFEST $(datadir)/gnats/dist/MANIFEST
|
||||
${TOOL_SED} \
|
||||
-e 's/"DEFAULT_RELEASE") ".*"/"DEFAULT_RELEASE") "@''DEFAULT_RELEASE@"/' \
|
||||
-e 's/"SUBMITTER") ".*"/"SUBMITTER") "@''SUBMITTER@"/' \
|
||||
-e 's/"DATADIR") ".*"/"DATADIR") "@''DATADIR@"/' \
|
||||
send-pr.el > $(datadir)/gnats/dist/send-pr-el.inT
|
||||
mv $(datadir)/gnats/dist/send-pr-el.inT \
|
||||
$(datadir)/gnats/dist/send-pr-el.in
|
||||
sed -e 's/GNATS_ROOT=.*/GNATS_ROOT=/' \
|
||||
-e 's/SUBMITTER=.*/SUBMITTER=unknown/' \
|
||||
${TOOL_SED} -e 's/GNATS_ROOT=.*/GNATS_ROOT=/' \
|
||||
-e 's/SUBMITTER=.*/SUBMITTER=@''SUBMITTER@/' \
|
||||
-e 's/DEFAULT_RELEASE=.*/DEFAULT_RELEASE="@''DEFAULT_RELEASE@"/' \
|
||||
-e 's/DEFAULT_ORGANIZATION=.*/DEFAULT_ORGANIZATION=/' \
|
||||
-e 's/DATADIR=.*/DATADIR=@''DATADIR@/' \
|
||||
send-pr > $(datadir)/gnats/dist/send-pr.sh-t
|
||||
mv $(datadir)/gnats/dist/send-pr.sh-t \
|
||||
$(datadir)/gnats/dist/send-pr.sh
|
||||
sed -e 's/^BINDIR=.*/BINDIR=@''BINDIR@/' \
|
||||
${TOOL_SED} -e 's/^BINDIR=.*/BINDIR=@''BINDIR@/' \
|
||||
install-sid > $(datadir)/gnats/dist/install-sid.sT
|
||||
mv $(datadir)/gnats/dist/install-sid.sT \
|
||||
$(datadir)/gnats/dist/install-sid.sh
|
||||
|
@ -196,12 +213,6 @@ install-gnats-dist: info
|
|||
$(datadir)/gnats/dist/states.texi
|
||||
$(INSTALL_DATA) $(srcdir)/../texinfo/texinfo.tex \
|
||||
$(datadir)/gnats/dist/texinfo.tex
|
||||
@if [ `whoami` = root ] ; then \
|
||||
echo "chown gnats $(datadir)/gnats/dist" ; \
|
||||
chown gnats $(datadir)/gnats/dist ; \
|
||||
elif [ `whoami` != gnats ] ; then \
|
||||
echo "*** Warning: $(datadir)/gnats must be writable by the gnats user" ; \
|
||||
fi
|
||||
|
||||
install-info: send-pr.info
|
||||
for i in send-pr.info* ; do \
|
||||
|
@ -211,7 +222,7 @@ install-info: send-pr.info
|
|||
uninstall:
|
||||
-rm -f $(bindir)/send-pr $(bindir)/install-sid
|
||||
-rm -f $(datadir)/gnats/$(GNATS_SITE)
|
||||
-[ x$GNATS_ROOT = x] || rm -rf $(datadir)/gnats/dist
|
||||
-[ x$$GNATS_ROOT = x ] || rm -rf $(datadir)/gnats/dist
|
||||
-rmdir $(datadir)/gnats
|
||||
-rm -f $(man1dir)/send-pr.1
|
||||
-rm -f $(lispdir)/send-pr.el $(lispdir)/send-pr.elc
|
||||
|
@ -227,7 +238,7 @@ version.texi: Makefile
|
|||
mv $@-t $@
|
||||
|
||||
send-pr.1: Makefile
|
||||
sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
|
||||
${TOOL_SED} -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
|
||||
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
|
||||
mv $@-t $@
|
||||
|
||||
|
@ -241,8 +252,8 @@ send-pr.dvi: version.texi
|
|||
# known only to the GNATS configuration.
|
||||
gnats-build: stamp-gnats
|
||||
|
||||
stamp-gnats: ../gnats/Makefile Makefile
|
||||
sed -e 's,^GNATS_ROOT =.*,GNATS_ROOT = $(GNATS_ROOT),' \
|
||||
stamp-gnats: Makefile
|
||||
${TOOL_SED} -e 's,^GNATS_ROOT =.*,GNATS_ROOT = $(GNATS_ROOT),' \
|
||||
-e 's,^GNATS_ADDR =.*,GNATS_ADDR = $(GNATS_ADDR),' \
|
||||
-e 's,^GNATS_SITE =.*,GNATS_SITE = $(GNATS_SITE),' \
|
||||
-e 's,^DEFAULT_RELEASE =.*,DEFAULT_RELEASE = $(DEFAULT_RELEASE),' \
|
||||
|
|
|
@ -30,3 +30,43 @@ else
|
|||
ECHON=none
|
||||
test -n "$verbose" && echo ' using plain echo'
|
||||
fi])dnl
|
||||
dnl
|
||||
define([AC_LISPDIR],dnl
|
||||
[AC_MSG_CHECKING(checking for Emacs Lisp files)
|
||||
if test -n "$with_lispdir"; then
|
||||
LISPDIR=${with_lispdir}
|
||||
else
|
||||
for f in ${prefix-/usr/local}/lib/emacs/site-lisp \
|
||||
${prefix-/usr/local}/lib/emacs/lisp; do
|
||||
if test -d $f; then
|
||||
if test -n "$prefix"; then
|
||||
LISPDIR=`echo $f | sed "s,^$prefix,"'$(prefix),'`
|
||||
else
|
||||
LISPDIR=$f
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test -z "$LISPDIR"; then
|
||||
dnl # Change this default when Emacs 19 has been around for a while
|
||||
LISPDIR='$(prefix)/lib/emacs/lisp'
|
||||
fi
|
||||
AC_MSG_RESULT(${LISPDIR})
|
||||
AC_SUBST(LISPDIR)dnl
|
||||
])dnl
|
||||
dnl
|
||||
define([AC_PASSWD],dnl
|
||||
[echo checking how to access passwd database
|
||||
PASSWD="cat /etc/passwd"
|
||||
if test -f /bin/domainname && test -n "`/bin/domainname`"; then
|
||||
if test -f /usr/bin/niscat &&
|
||||
/usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then
|
||||
PASSWD="/usr/bin/niscat passwd.org_dir"
|
||||
elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then
|
||||
PASSWD="/usr/bin/ypcat passwd"
|
||||
fi
|
||||
fi
|
||||
test -n "$verbose" && echo " setting PASSWD to ${PASSWD}"
|
||||
AC_SUBST(PASSWD)dnl
|
||||
])dnl
|
||||
|
|
|
@ -1,49 +1,71 @@
|
|||
pending
|
||||
bfd
|
||||
binutils
|
||||
bison
|
||||
build
|
||||
byacc
|
||||
config
|
||||
cvs
|
||||
dejagnu
|
||||
diff
|
||||
doc
|
||||
emacs
|
||||
flex
|
||||
g++
|
||||
gas
|
||||
gcc
|
||||
gdb
|
||||
gdb++
|
||||
glob
|
||||
gnats
|
||||
gprof
|
||||
grep
|
||||
help-request
|
||||
id-request
|
||||
info-request
|
||||
ispell
|
||||
kerberos
|
||||
ld
|
||||
libg++
|
||||
libiberty
|
||||
make
|
||||
mas
|
||||
mgmt
|
||||
libc
|
||||
libm
|
||||
newlib
|
||||
netware
|
||||
other
|
||||
patch
|
||||
query-pr
|
||||
send-pr
|
||||
rcs
|
||||
readline
|
||||
test
|
||||
testsuites
|
||||
texinfo
|
||||
info
|
||||
makeinfo
|
||||
texindex
|
||||
bin
|
||||
install
|
||||
kern
|
||||
lib
|
||||
misc
|
||||
pkg
|
||||
port-acorn26
|
||||
port-acorn32
|
||||
port-algor
|
||||
port-alpha
|
||||
port-amd64
|
||||
port-amiga
|
||||
port-amigappc
|
||||
port-arc
|
||||
port-arm
|
||||
port-atari
|
||||
port-bebox
|
||||
port-cats
|
||||
port-cesfic
|
||||
port-cobalt
|
||||
port-dreamcast
|
||||
port-emips
|
||||
port-evbarm
|
||||
port-evbmips
|
||||
port-evbppc
|
||||
port-evbsh3
|
||||
port-hp300
|
||||
port-hpcarm
|
||||
port-hpcmips
|
||||
port-hpcsh
|
||||
port-hppa
|
||||
port-i386
|
||||
port-ia64
|
||||
port-ibmnws
|
||||
port-iyonix
|
||||
port-luna68k
|
||||
port-m68k
|
||||
port-mac68k
|
||||
port-macppc
|
||||
port-mips
|
||||
port-mipsco
|
||||
port-mmeye
|
||||
port-mvme68k
|
||||
port-mvmeppc
|
||||
port-netwinder
|
||||
port-news68k
|
||||
port-newsmips
|
||||
port-next68k
|
||||
port-ofppc
|
||||
port-playstation2
|
||||
port-pmax
|
||||
port-powerpc
|
||||
port-prep
|
||||
port-sandpoint
|
||||
port-sbmips
|
||||
port-sgimips
|
||||
port-sh3
|
||||
port-shark
|
||||
port-sparc
|
||||
port-sparc64
|
||||
port-sun2
|
||||
port-sun3
|
||||
port-vax
|
||||
port-x68k
|
||||
port-xen
|
||||
port-zaurus
|
||||
security
|
||||
standards
|
||||
toolchain
|
||||
xsrc
|
||||
y2k
|
||||
|
|
|
@ -1,131 +1,403 @@
|
|||
#!/bin/sh
|
||||
#! /bin/sh
|
||||
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated automatically using autoconf.
|
||||
# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
|
||||
# Generated automatically using autoconf version 2.3
|
||||
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
#
|
||||
# This configure script is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy, distribute and modify it.
|
||||
|
||||
# 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.
|
||||
# Defaults:
|
||||
ac_help=
|
||||
ac_default_prefix=/usr/local
|
||||
# Any additions from configure.in:
|
||||
|
||||
# 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.
|
||||
# Initialize some variables set by options.
|
||||
# The variables have the same names as the options, with
|
||||
# dashes changed to underlines.
|
||||
build=NONE
|
||||
cache_file=./config.cache
|
||||
exec_prefix=NONE
|
||||
host=NONE
|
||||
no_create=
|
||||
nonopt=NONE
|
||||
no_recursion=
|
||||
prefix=NONE
|
||||
program_prefix=NONE
|
||||
program_suffix=NONE
|
||||
program_transform_name=s,x,x,
|
||||
silent=
|
||||
site=
|
||||
srcdir=
|
||||
target=NONE
|
||||
verbose=
|
||||
x_includes=NONE
|
||||
x_libraries=NONE
|
||||
|
||||
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# Initialize some other variables.
|
||||
subdirs=
|
||||
|
||||
# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
|
||||
# [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
|
||||
# Ignores all args except --srcdir, --prefix, --exec-prefix, and
|
||||
# --with-PACKAGE[=VALUE] unless this script has special code to handle it.
|
||||
|
||||
for arg
|
||||
ac_prev=
|
||||
for ac_option
|
||||
do
|
||||
# Handle --exec-prefix with a space before the argument.
|
||||
if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
|
||||
# Handle --host with a space before the argument.
|
||||
elif test x$next_host = xyes; then next_host=
|
||||
# Handle --prefix with a space before the argument.
|
||||
elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
|
||||
# Handle --srcdir with a space before the argument.
|
||||
elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
|
||||
else
|
||||
case $arg in
|
||||
# For backward compatibility, recognize -exec-prefix and --exec_prefix.
|
||||
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
|
||||
exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
|
||||
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
|
||||
next_exec_prefix=yes ;;
|
||||
|
||||
-gas | --gas | --ga | --g) ;;
|
||||
|
||||
-host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
|
||||
-host | --host | --hos | --ho | --h)
|
||||
next_host=yes ;;
|
||||
|
||||
-nfp | --nfp | --nf) ;;
|
||||
|
||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
||||
prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
|
||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
||||
next_prefix=yes ;;
|
||||
|
||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
|
||||
srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
|
||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
|
||||
next_srcdir=yes ;;
|
||||
|
||||
-with-* | --with-*)
|
||||
package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
|
||||
# Reject names that aren't valid shell variable names.
|
||||
if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
echo "configure: $package: invalid package name" >&2; exit 1
|
||||
fi
|
||||
package=`echo $package| sed 's/-/_/g'`
|
||||
case "$arg" in
|
||||
*=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
|
||||
*) val=1 ;;
|
||||
esac
|
||||
eval "with_$package='$val'" ;;
|
||||
|
||||
-v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
|
||||
verbose=yes ;;
|
||||
|
||||
*) ;;
|
||||
esac
|
||||
# If the previous option needs an argument, assign it.
|
||||
if test -n "$ac_prev"; then
|
||||
eval "$ac_prev=\$ac_option"
|
||||
ac_prev=
|
||||
continue
|
||||
fi
|
||||
|
||||
case "$ac_option" in
|
||||
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) ac_optarg= ;;
|
||||
esac
|
||||
|
||||
# Accept the important Cygnus configure options, so we can diagnose typos.
|
||||
|
||||
case "$ac_option" in
|
||||
|
||||
-build | --build | --buil | --bui | --bu | --b)
|
||||
ac_prev=build ;;
|
||||
-build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
|
||||
build="$ac_optarg" ;;
|
||||
|
||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
||||
ac_prev=cache_file ;;
|
||||
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||
cache_file="$ac_optarg" ;;
|
||||
|
||||
-disable-* | --disable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
||||
eval "enable_${ac_feature}=no" ;;
|
||||
|
||||
-enable-* | --enable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
||||
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
||||
case "$ac_option" in
|
||||
*=*) ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
||||
|
||||
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
||||
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
||||
| --exec | --exe | --ex)
|
||||
ac_prev=exec_prefix ;;
|
||||
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
||||
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
||||
| --exec=* | --exe=* | --ex=*)
|
||||
exec_prefix="$ac_optarg" ;;
|
||||
|
||||
-gas | --gas | --ga | --g)
|
||||
# Obsolete; use --with-gas.
|
||||
with_gas=yes ;;
|
||||
|
||||
-help | --help | --hel | --he)
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat << EOF
|
||||
Usage: configure [options] [host]
|
||||
Options: [defaults in brackets after descriptions]
|
||||
Configuration:
|
||||
--cache-file=FILE cache test results in FILE
|
||||
--help print this message
|
||||
--no-create do not create output files
|
||||
--quiet, --silent do not print \`checking...' messages
|
||||
--version print the version of autoconf that created configure
|
||||
Directory and file names:
|
||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||
[$ac_default_prefix]
|
||||
--exec-prefix=PREFIX install architecture-dependent files in PREFIX
|
||||
[same as prefix]
|
||||
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
||||
Host type:
|
||||
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
||||
--host=HOST configure for HOST [guessed]
|
||||
--target=TARGET configure for TARGET [TARGET=HOST]
|
||||
Features and packages:
|
||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--x-includes=DIR X include files are in DIR
|
||||
--x-libraries=DIR X library files are in DIR
|
||||
--enable and --with options recognized:$ac_help
|
||||
EOF
|
||||
exit 0 ;;
|
||||
|
||||
-host | --host | --hos | --ho)
|
||||
ac_prev=host ;;
|
||||
-host=* | --host=* | --hos=* | --ho=*)
|
||||
host="$ac_optarg" ;;
|
||||
|
||||
-nfp | --nfp | --nf)
|
||||
# Obsolete; use --without-fp.
|
||||
with_fp=no ;;
|
||||
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c)
|
||||
no_create=yes ;;
|
||||
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
||||
no_recursion=yes ;;
|
||||
|
||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
||||
ac_prev=prefix ;;
|
||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
||||
prefix="$ac_optarg" ;;
|
||||
|
||||
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
||||
| --program-pre | --program-pr | --program-p)
|
||||
ac_prev=program_prefix ;;
|
||||
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
||||
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
||||
program_prefix="$ac_optarg" ;;
|
||||
|
||||
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
||||
| --program-suf | --program-su | --program-s)
|
||||
ac_prev=program_suffix ;;
|
||||
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
||||
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
||||
program_suffix="$ac_optarg" ;;
|
||||
|
||||
-program-transform-name | --program-transform-name \
|
||||
| --program-transform-nam | --program-transform-na \
|
||||
| --program-transform-n | --program-transform- \
|
||||
| --program-transform | --program-transfor \
|
||||
| --program-transfo | --program-transf \
|
||||
| --program-trans | --program-tran \
|
||||
| --progr-tra | --program-tr | --program-t)
|
||||
ac_prev=program_transform_name ;;
|
||||
-program-transform-name=* | --program-transform-name=* \
|
||||
| --program-transform-nam=* | --program-transform-na=* \
|
||||
| --program-transform-n=* | --program-transform-=* \
|
||||
| --program-transform=* | --program-transfor=* \
|
||||
| --program-transfo=* | --program-transf=* \
|
||||
| --program-trans=* | --program-tran=* \
|
||||
| --progr-tra=* | --program-tr=* | --program-t=*)
|
||||
program_transform_name="$ac_optarg" ;;
|
||||
|
||||
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
||||
| -silent | --silent | --silen | --sile | --sil)
|
||||
silent=yes ;;
|
||||
|
||||
-site | --site | --sit)
|
||||
ac_prev=site ;;
|
||||
-site=* | --site=* | --sit=*)
|
||||
site="$ac_optarg" ;;
|
||||
|
||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||
ac_prev=srcdir ;;
|
||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||
srcdir="$ac_optarg" ;;
|
||||
|
||||
-target | --target | --targe | --targ | --tar | --ta | --t)
|
||||
ac_prev=target ;;
|
||||
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
||||
target="$ac_optarg" ;;
|
||||
|
||||
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
||||
verbose=yes ;;
|
||||
|
||||
-version | --version | --versio | --versi | --vers)
|
||||
echo "configure generated by autoconf version 2.3"
|
||||
exit 0 ;;
|
||||
|
||||
-with-* | --with-*)
|
||||
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
||||
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
||||
case "$ac_option" in
|
||||
*=*) ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
eval "with_${ac_package}='$ac_optarg'" ;;
|
||||
|
||||
-without-* | --without-*)
|
||||
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
||||
eval "with_${ac_package}=no" ;;
|
||||
|
||||
--x)
|
||||
# Obsolete; use --with-x.
|
||||
with_x=yes ;;
|
||||
|
||||
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
||||
| --x-incl | --x-inc | --x-in | --x-i)
|
||||
ac_prev=x_includes ;;
|
||||
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
||||
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
||||
x_includes="$ac_optarg" ;;
|
||||
|
||||
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
||||
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
||||
ac_prev=x_libraries ;;
|
||||
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
||||
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
||||
x_libraries="$ac_optarg" ;;
|
||||
|
||||
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
||||
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
||||
fi
|
||||
if test "x$nonopt" != xNONE; then
|
||||
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
||||
fi
|
||||
nonopt="$ac_option"
|
||||
;;
|
||||
|
||||
esac
|
||||
done
|
||||
|
||||
trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
|
||||
trap 'rm -f confdefs*' 0
|
||||
if test -n "$ac_prev"; then
|
||||
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
||||
fi
|
||||
|
||||
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
||||
|
||||
# File descriptor usage:
|
||||
# 0 standard input
|
||||
# 1 file creation
|
||||
# 2 errors and warnings
|
||||
# 3 some systems may open it to /dev/tty
|
||||
# 4 used on the Kubota Titan
|
||||
# 6 checking for... messages and results
|
||||
# 5 compiler messages saved in config.log
|
||||
if test "$silent" = yes; then
|
||||
exec 6>/dev/null
|
||||
else
|
||||
exec 6>&1
|
||||
fi
|
||||
exec 5>./config.log
|
||||
|
||||
echo "\
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
" 1>&5
|
||||
|
||||
# Strip out --no-create and --no-recursion so they do not pile up.
|
||||
# Also quote any args containing shell metacharacters.
|
||||
ac_configure_args=
|
||||
for ac_arg
|
||||
do
|
||||
case "$ac_arg" in
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c) ;;
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
||||
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
||||
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
||||
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# NLS nuisances.
|
||||
# Only set LANG and LC_ALL to C if already set.
|
||||
# These must not be set unconditionally because not all systems understand
|
||||
# e.g. LANG=C (notably SCO).
|
||||
if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
|
||||
if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi
|
||||
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
||||
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
||||
|
||||
rm -f conftest* confdefs.h
|
||||
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
||||
rm -rf conftest* confdefs.h
|
||||
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
||||
echo > confdefs.h
|
||||
compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
|
||||
|
||||
# A filename unique to this package, relative to the directory that
|
||||
# configure is in, which we can look for to find out if srcdir is correct.
|
||||
unique_file=send-pr.sh
|
||||
ac_unique_file=send-pr.sh
|
||||
|
||||
# Find the source files, if location was not specified.
|
||||
if test -z "$srcdir"; then
|
||||
srcdirdefaulted=yes
|
||||
# Try the directory containing this script, then `..'.
|
||||
prog=$0
|
||||
confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
|
||||
test "X$confdir" = "X$prog" && confdir=.
|
||||
srcdir=$confdir
|
||||
if test ! -r $srcdir/$unique_file; then
|
||||
ac_srcdir_defaulted=yes
|
||||
# Try the directory containing this script, then its parent.
|
||||
ac_prog=$0
|
||||
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
||||
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
||||
srcdir=$ac_confdir
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
srcdir=..
|
||||
fi
|
||||
else
|
||||
ac_srcdir_defaulted=no
|
||||
fi
|
||||
if test ! -r $srcdir/$unique_file; then
|
||||
if test x$srcdirdefaulted = xyes; then
|
||||
echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
if test "$ac_srcdir_defaulted" = yes; then
|
||||
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
||||
else
|
||||
echo "configure: Can not find sources in \`${srcdir}'." 1>&2
|
||||
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
|
||||
# But we can't avoid them for `..', to make subdirectories work.
|
||||
case $srcdir in
|
||||
.|/*|~*) ;;
|
||||
*) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
|
||||
esac
|
||||
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
||||
|
||||
# Prefer explicitly selected file to automatically selected ones.
|
||||
if test -z "$CONFIG_SITE"; then
|
||||
if test "x$prefix" != xNONE; then
|
||||
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
||||
else
|
||||
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
||||
fi
|
||||
fi
|
||||
for ac_site_file in $CONFIG_SITE; do
|
||||
if test -r "$ac_site_file"; then
|
||||
echo "loading site script $ac_site_file"
|
||||
. "$ac_site_file"
|
||||
fi
|
||||
done
|
||||
|
||||
if test -r "$cache_file"; then
|
||||
echo "loading cache $cache_file"
|
||||
. $cache_file
|
||||
else
|
||||
echo "creating cache $cache_file"
|
||||
> $cache_file
|
||||
fi
|
||||
|
||||
ac_ext=c
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
|
||||
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
|
||||
|
||||
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
||||
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
||||
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
||||
ac_n= ac_c='
|
||||
' ac_t=' '
|
||||
else
|
||||
ac_n=-n ac_c= ac_t=
|
||||
fi
|
||||
else
|
||||
ac_n= ac_c='\c' ac_t=
|
||||
fi
|
||||
|
||||
|
||||
# Save the original args to write them into config.status later.
|
||||
configure_args="$*"
|
||||
|
||||
|
||||
echo checking for echo -n
|
||||
|
@ -139,10 +411,47 @@ else
|
|||
ECHON=none
|
||||
test -n "$verbose" && echo ' using plain echo'
|
||||
fi
|
||||
echo $ac_n "checking checking for Emacs Lisp files""... $ac_c" 1>&6
|
||||
if test -n "$with_lispdir"; then
|
||||
LISPDIR=${with_lispdir}
|
||||
else
|
||||
for f in ${prefix-/usr/local}/lib/emacs/site-lisp \
|
||||
${prefix-/usr/local}/lib/emacs/lisp; do
|
||||
if test -d $f; then
|
||||
if test -n "$prefix"; then
|
||||
LISPDIR=`echo $f | sed "s,^$prefix,"'$(prefix),'`
|
||||
else
|
||||
LISPDIR=$f
|
||||
fi
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if test -z "$LISPDIR"; then
|
||||
LISPDIR='$(prefix)/lib/emacs/lisp'
|
||||
fi
|
||||
echo "$ac_t""${LISPDIR}" 1>&6
|
||||
|
||||
GNATS_SITE=cygnus
|
||||
echo checking how to access passwd database
|
||||
PASSWD="cat /etc/passwd"
|
||||
if test -f /bin/domainname && test -n "`/bin/domainname`"; then
|
||||
if test -f /usr/bin/niscat &&
|
||||
/usr/bin/niscat passwd.org_dir > /dev/null 2>&1; then
|
||||
PASSWD="/usr/bin/niscat passwd.org_dir"
|
||||
elif test -f /usr/bin/ypcat && /usr/bin/ypcat passwd > /dev/null 2>&1; then
|
||||
PASSWD="/usr/bin/ypcat passwd"
|
||||
fi
|
||||
fi
|
||||
test -n "$verbose" && echo " setting PASSWD to ${PASSWD}"
|
||||
|
||||
|
||||
if test -z "${GNATS_SITE}"; then
|
||||
GNATS_SITE=cygnus
|
||||
fi
|
||||
SUBMITTER=unknown
|
||||
GNATS_ADDR=bugs@cygnus.com
|
||||
if test -z "${GNATS_ADDR}"; then
|
||||
GNATS_ADDR=bugs@cygnus.com
|
||||
fi
|
||||
DEFAULT_ORGANIZATION=
|
||||
|
||||
if test x/usr/lib:/usr/sbin:/usr/ucblib = x; then _PATH=$PATH; else _PATH=/usr/lib:/usr/sbin:/usr/ucblib; fi
|
||||
|
@ -181,11 +490,7 @@ if test -n "$with_gnats_root"; then
|
|||
fi
|
||||
|
||||
if test -z "${GNATS_ROOT}"; then
|
||||
if test -n "${prefix}"; then
|
||||
GNATS_ROOT=${prefix}/lib/gnats/gnats-root
|
||||
else
|
||||
GNATS_ROOT=/usr/local/lib/gnats/gnats-root
|
||||
fi
|
||||
GNATS_ROOT=${prefix-/usr/local}/lib/gnats/gnats-root
|
||||
_PR=${GNATS_ROOT}
|
||||
fi
|
||||
|
||||
|
@ -231,84 +536,120 @@ if test -n "$verbose"; then
|
|||
echo " setting MAIL_AGENT to $MAIL_AGENT"
|
||||
fi
|
||||
|
||||
# Set default prefixes.
|
||||
if test -n "$prefix"; then
|
||||
test -z "$exec_prefix" && exec_prefix='${prefix}'
|
||||
prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
|
||||
fi
|
||||
if test -n "$exec_prefix"; then
|
||||
prsub="$prsub
|
||||
s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
|
||||
fi
|
||||
# Quote sed substitution magic chars in DEFS.
|
||||
cat >conftest.def <<EOF
|
||||
$DEFS
|
||||
trap '' 1 2 15
|
||||
cat > confcache <<\EOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
# tests run on this system so they can be shared between configure
|
||||
# scripts and configure runs. It is not useful on other systems.
|
||||
# If it contains results you don't want to keep, you may remove or edit it.
|
||||
#
|
||||
# By default, configure uses ./config.cache as the cache file,
|
||||
# creating it if it does not exist already. You can give configure
|
||||
# the --cache-file=FILE option to use a different cache file; that is
|
||||
# what configure does when it calls configure scripts in
|
||||
# subdirectories, so they share the cache.
|
||||
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
||||
# config.status only pays attention to the cache file if you give it the
|
||||
# --recheck option to rerun configure.
|
||||
#
|
||||
EOF
|
||||
escape_ampersand_and_backslash='s%[&\\]%\\&%g'
|
||||
DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
|
||||
rm -f conftest.def
|
||||
# Substitute for predefined variables.
|
||||
# Ultrix sh set writes to stderr and can't be redirected directly,
|
||||
# and sets the high bit in the cache file unless we assign to the vars.
|
||||
(set) 2>&1 |
|
||||
sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
|
||||
>> confcache
|
||||
if cmp -s $cache_file confcache; then
|
||||
:
|
||||
else
|
||||
if test -w $cache_file; then
|
||||
echo "updating cache $cache_file"
|
||||
cat confcache > $cache_file
|
||||
else
|
||||
echo "not updating unwritable cache $cache_file"
|
||||
fi
|
||||
fi
|
||||
rm -f confcache
|
||||
|
||||
trap 'rm -f config.status; exit 1' 1 3 15
|
||||
echo creating config.status
|
||||
rm -f config.status
|
||||
cat > config.status <<EOF
|
||||
#!/bin/sh
|
||||
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
||||
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
# Let make expand exec_prefix.
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
|
||||
# Any assignment to VPATH causes Sun make to only execute
|
||||
# the first set of double-colon rules, so remove it if not needed.
|
||||
# If there is a colon in the path, we need to keep it.
|
||||
if test "x$srcdir" = x.; then
|
||||
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
||||
fi
|
||||
|
||||
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
||||
|
||||
# Transform confdefs.h into DEFS.
|
||||
# Protect against shell expansion while executing Makefile rules.
|
||||
# Protect against Makefile macro expansion.
|
||||
cat > conftest.defs <<\EOF
|
||||
s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
|
||||
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
||||
s%\[%\\&%g
|
||||
s%\]%\\&%g
|
||||
s%\$%$$%g
|
||||
EOF
|
||||
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
||||
rm -f conftest.defs
|
||||
|
||||
|
||||
# Without the "./", some shells look in PATH for config.status.
|
||||
: ${CONFIG_STATUS=./config.status}
|
||||
|
||||
echo creating $CONFIG_STATUS
|
||||
rm -f $CONFIG_STATUS
|
||||
cat > $CONFIG_STATUS <<EOF
|
||||
#! /bin/sh
|
||||
# Generated automatically by configure.
|
||||
# Run this file to recreate the current configuration.
|
||||
# This directory was configured as follows,
|
||||
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
||||
#
|
||||
# $0 $configure_args
|
||||
# $0 $ac_configure_args
|
||||
#
|
||||
# Compiler output produced by configure, useful for debugging
|
||||
# configure, is in ./config.log if it exists.
|
||||
|
||||
for arg
|
||||
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
||||
for ac_option
|
||||
do
|
||||
case "\$arg" in
|
||||
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
||||
echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
|
||||
exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
|
||||
*) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
|
||||
case "\$ac_option" in
|
||||
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.3"
|
||||
exit 0 ;;
|
||||
-help | --help | --hel | --he | --h)
|
||||
echo "\$ac_cs_usage"; exit 0 ;;
|
||||
*) echo "\$ac_cs_usage"; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
trap 'rm -f Makefile; exit 1' 1 3 15
|
||||
GNATS_ROOT='$GNATS_ROOT'
|
||||
GNATS_ADDR='$GNATS_ADDR'
|
||||
GNATS_SITE='$GNATS_SITE'
|
||||
DEFAULT_RELEASE='$DEFAULT_RELEASE'
|
||||
DEFAULT_ORGANIZATION='$DEFAULT_ORGANIZATION'
|
||||
MAIL_AGENT='$MAIL_AGENT'
|
||||
SUBMITTER='$SUBMITTER'
|
||||
ECHON='$ECHON'
|
||||
SENDMAIL='$SENDMAIL'
|
||||
SEND_PR='$SEND_PR'
|
||||
LIBS='$LIBS'
|
||||
srcdir='$srcdir'
|
||||
DEFS='$DEFS'
|
||||
prefix='$prefix'
|
||||
exec_prefix='$exec_prefix'
|
||||
prsub='$prsub'
|
||||
extrasub='$extrasub'
|
||||
EOF
|
||||
cat >> config.status <<\EOF
|
||||
ac_given_srcdir=$srcdir
|
||||
|
||||
top_srcdir=$srcdir
|
||||
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||
|
||||
CONFIG_FILES=${CONFIG_FILES-"Makefile"}
|
||||
for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
|
||||
srcdir=$top_srcdir
|
||||
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||
dir=`echo $file|sed 's%/[^/][^/]*$%%'`
|
||||
if test "$dir" != "$file"; then
|
||||
test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
|
||||
test ! -d $dir && mkdir $dir
|
||||
fi
|
||||
echo creating $file
|
||||
rm -f $file
|
||||
echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
|
||||
sed -e "
|
||||
$prsub
|
||||
# Protect against being on the right side of a sed subst in config.status.
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
|
||||
$ac_vpsub
|
||||
$extrasub
|
||||
s%@CFLAGS@%$CFLAGS%g
|
||||
s%@CPPFLAGS@%$CPPFLAGS%g
|
||||
s%@CXXFLAGS@%$CXXFLAGS%g
|
||||
s%@DEFS@%$DEFS%g
|
||||
s%@LDFLAGS@%$LDFLAGS%g
|
||||
s%@LIBS@%$LIBS%g
|
||||
s%@exec_prefix@%$exec_prefix%g
|
||||
s%@prefix@%$prefix%g
|
||||
s%@program_transform_name@%$program_transform_name%g
|
||||
s%@GNATS_ROOT@%$GNATS_ROOT%g
|
||||
s%@GNATS_ADDR@%$GNATS_ADDR%g
|
||||
s%@GNATS_SITE@%$GNATS_SITE%g
|
||||
|
@ -317,17 +658,71 @@ s%@DEFAULT_ORGANIZATION@%$DEFAULT_ORGANIZATION%g
|
|||
s%@MAIL_AGENT@%$MAIL_AGENT%g
|
||||
s%@SUBMITTER@%$SUBMITTER%g
|
||||
s%@ECHON@%$ECHON%g
|
||||
s%@LISPDIR@%$LISPDIR%g
|
||||
s%@PASSWD@%$PASSWD%g
|
||||
s%@SENDMAIL@%$SENDMAIL%g
|
||||
s%@SEND_PR@%$SEND_PR%g
|
||||
s%@LIBS@%$LIBS%g
|
||||
|
||||
CEOF
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
||||
# Support "outfile[:infile]", defaulting infile="outfile.in".
|
||||
case "$ac_file" in
|
||||
*:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
|
||||
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
||||
*) ac_file_in="${ac_file}.in" ;;
|
||||
esac
|
||||
|
||||
# Adjust relative srcdir, etc. for subdirectories.
|
||||
|
||||
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
||||
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
||||
# The file is in a subdirectory.
|
||||
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
||||
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
||||
# A "../" for each directory in $ac_dir_suffix.
|
||||
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
||||
else
|
||||
ac_dir_suffix= ac_dots=
|
||||
fi
|
||||
|
||||
case "$ac_given_srcdir" in
|
||||
.) srcdir=.
|
||||
if test -z "$ac_dots"; then top_srcdir=.
|
||||
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
||||
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
||||
*) # Relative path.
|
||||
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
||||
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
||||
esac
|
||||
|
||||
echo creating "$ac_file"
|
||||
rm -f "$ac_file"
|
||||
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
||||
case "$ac_file" in
|
||||
*Makefile*) ac_comsub="1i\\
|
||||
# $configure_input" ;;
|
||||
*) ac_comsub= ;;
|
||||
esac
|
||||
sed -e "$ac_comsub
|
||||
s%@configure_input@%$configure_input%g
|
||||
s%@srcdir@%$srcdir%g
|
||||
s%@DEFS@%$DEFS%
|
||||
" $top_srcdir/${file}.in >> $file
|
||||
s%@top_srcdir@%$top_srcdir%g
|
||||
" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
|
||||
fi; done
|
||||
rm -f conftest.subs
|
||||
|
||||
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
chmod +x config.status
|
||||
${CONFIG_SHELL-/bin/sh} config.status
|
||||
chmod +x $CONFIG_STATUS
|
||||
rm -fr confdefs* $ac_clean_files
|
||||
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
AC_INIT(send-pr.sh)
|
||||
|
||||
AC_SUBST(GNATS_ROOT)dnl
|
||||
AC_SUBST(GNATS_ADDR)dnl
|
||||
AC_SUBST(GNATS_SITE)dnl
|
||||
|
@ -9,10 +10,16 @@ AC_SUBST(SUBMITTER)dnl
|
|||
AC_SUBST(ECHON)dnl
|
||||
|
||||
AC_ECHON
|
||||
AC_LISPDIR
|
||||
AC_PASSWD
|
||||
|
||||
GNATS_SITE=cygnus
|
||||
if test -z "${GNATS_SITE}"; then
|
||||
GNATS_SITE=cygnus
|
||||
fi
|
||||
SUBMITTER=unknown
|
||||
GNATS_ADDR=bugs@cygnus.com
|
||||
if test -z "${GNATS_ADDR}"; then
|
||||
GNATS_ADDR=bugs@cygnus.com
|
||||
fi
|
||||
DEFAULT_ORGANIZATION=
|
||||
|
||||
AC_FIND_PROGRAM(SENDMAIL,sendmail,/usr/lib:/usr/sbin:/usr/ucblib)
|
||||
|
@ -35,11 +42,7 @@ if test -n "$with_gnats_root"; then
|
|||
fi
|
||||
|
||||
if test -z "${GNATS_ROOT}"; then
|
||||
if test -n "${prefix}"; then
|
||||
GNATS_ROOT=${prefix}/lib/gnats/gnats-root
|
||||
else
|
||||
GNATS_ROOT=/usr/local/lib/gnats/gnats-root
|
||||
fi
|
||||
GNATS_ROOT=${prefix-/usr/local}/lib/gnats/gnats-root
|
||||
_PR=${GNATS_ROOT}
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
@node Fields
|
||||
@c $NetBSD: fields.texi,v 1.1.1.1 2016/01/14 21:06:14 christos Exp $
|
||||
@section Problem Report format
|
||||
@cindex Problem Report format
|
||||
@cindex format
|
||||
|
@ -101,7 +100,7 @@ Subject: @var{subject}
|
|||
>Number: @var{gnats-id}
|
||||
>Category: @var{category}
|
||||
>Synopsis: @var{synopsis}
|
||||
>Confidential: yes @emph{or} no
|
||||
>Confidential: no @emph{or} yes
|
||||
>Severity: critical, serious, @emph{or} non-critical
|
||||
>Priority: high, medium @emph{or} low
|
||||
>Responsible: @var{responsible}
|
||||
|
@ -281,6 +280,7 @@ The product, component or concept is working in general, but lacks
|
|||
features, has irritating behavior, does something wrong, or doesn't
|
||||
match its documentation.
|
||||
@end table
|
||||
@noindent
|
||||
The default value is @samp{serious}.
|
||||
@sp 1
|
||||
|
||||
|
@ -364,7 +364,7 @@ concept.
|
|||
@item >Environment:
|
||||
@cindex @code{Environment} field
|
||||
@cindex @code{>Environment:}
|
||||
(@sc{MultiText}) Description of the environment where the problem occured:
|
||||
(@sc{MultiText}) Description of the environment where the problem occurred:
|
||||
machine architecture, operating system, host and target types,
|
||||
libraries, pathnames, etc.
|
||||
|
||||
|
|
|
@ -84,6 +84,27 @@
|
|||
(string-lessp emacs-version "19")))
|
||||
"Is this emacs v19?")
|
||||
|
||||
;;; This has to be here rather than at the bottom of this file with
|
||||
;;; the other utility functions because it is used by
|
||||
;;; gnats::get-config, which is called when send-pr.el is being
|
||||
;;; loaded (see the "defconst" below), before the whole file has been
|
||||
;;; loaded.
|
||||
|
||||
(defun gnats::find-safe-default-directory (&optional buffer)
|
||||
"If the directory referred to by `default-directory' for the current
|
||||
buffer (or for optional argument BUFFER) does not exist, set it to the home
|
||||
directory of the current user if that exists, or to `/'.
|
||||
|
||||
Returns the final value of default-directory in the buffer."
|
||||
(let ((homedir (expand-file-name "~/")))
|
||||
(save-excursion
|
||||
(if buffer (set-buffer buffer))
|
||||
(if (not (file-exists-p default-directory))
|
||||
(if (file-exists-p homedir)
|
||||
(setq default-directory homedir)
|
||||
(setq default-directory "/")))
|
||||
default-directory)))
|
||||
|
||||
;;; These may be changed during configuration/installation or by the individual
|
||||
;;; user in his/her .emacs file.
|
||||
;;;
|
||||
|
@ -93,9 +114,14 @@
|
|||
ret)
|
||||
(save-excursion
|
||||
(set-buffer buf)
|
||||
(shell-command (concat ". " gnats:root "/gnats-adm/config; echo $" var )
|
||||
t)
|
||||
(if (looking-at "/bin/sh:\\|\n")
|
||||
(shell-command-on-region
|
||||
(point-min) (point-max)
|
||||
(concat ". " gnats:root "/gnats-adm/config; echo $" var ) t)
|
||||
(goto-char (point-min))
|
||||
; We have to use get-buffer, since shell-command-on-region will wipe
|
||||
; out the buffer if there's no output from the command.
|
||||
(if (or (not (get-buffer "*Shell Command Output*"))
|
||||
(looking-at "/bin/sh:\\|\.:\\|\n"))
|
||||
(setq ret nil)
|
||||
(setq ret (buffer-substring (point-min) (- (point-max) 1)))))
|
||||
(kill-buffer buf)
|
||||
|
@ -128,7 +154,7 @@ at runtime.")
|
|||
(` (("Category" send-pr::set-categories
|
||||
(, (or (gnats::get-config "DEFAULT_CATEGORY") nil)) enum)
|
||||
("Class" (("sw-bug") ("doc-bug") ("change-request") ("support"))
|
||||
(, (or (gnats::get-config "DEFAULT_CONFIDENTIAL") 0)) enum)
|
||||
(, (or (gnats::get-config "DEFAULT_CLASS") 0)) enum)
|
||||
("Confidential" (("yes") ("no"))
|
||||
(, (or (gnats::get-config "DEFAULT_CONFIDENTIAL") 1)) enum)
|
||||
("Severity" (("non-critical") ("serious") ("critical"))
|
||||
|
@ -139,8 +165,7 @@ at runtime.")
|
|||
(, (or (gnats::get-config "DEFAULT_RELEASE") "xDEFAULT_RELEASEx"))
|
||||
text)
|
||||
("Submitter-Id" nil
|
||||
(, (or (gnats::get-config "DEFAULT_SUBMITTER") "xDEFAULT_SUBMITTERx"))
|
||||
text)
|
||||
(, (or (gnats::get-config "SUBMITTER") "xSUBMITTERx")) text)
|
||||
("Synopsis" nil nil text
|
||||
(lambda (a b c) (gnats::set-mail-field "Subject" c)))))
|
||||
"AList, keyed on the name of the field, of:
|
||||
|
@ -199,7 +224,10 @@ it to send-pr::sites. With arg, force update."
|
|||
(defvar send-pr:::err-buffer nil
|
||||
"The error buffer used by the current PR buffer.")
|
||||
|
||||
(defconst gnats::indent 17 "Indent for formatting the value.")
|
||||
(defvar send-pr:::spawn-to-send nil
|
||||
"Whether or not send-pr-mode should spawn a send-pr process to send the PR.")
|
||||
|
||||
(defconst gnats::indent 16 "Indent for formatting the value.")
|
||||
|
||||
;;;;---------------------------------------------------------------------------
|
||||
;;;; `send-pr' - command for creating and sending of problem reports
|
||||
|
@ -232,8 +260,9 @@ to send the PR with `send-pr -b -f -'."
|
|||
(let ((oldpr (getenv "GNATS_ROOT"))
|
||||
(case-fold-search nil))
|
||||
(setenv "GNATS_ROOT" gnats:root)
|
||||
(shell-command (concat "send-pr -P " site) t)
|
||||
(send-pr::insert-template site)
|
||||
(setenv "GNATS_ROOT" oldpr)
|
||||
(goto-char (point-min))
|
||||
(if (looking-at "send-pr:")
|
||||
(cond ((looking-at "send-pr: .* does not have a categories list")
|
||||
(setq send-pr::sites nil)
|
||||
|
@ -241,17 +270,21 @@ to send the PR with `send-pr -b -f -'."
|
|||
(t (error (buffer-substring (point-min) (point-max)))))
|
||||
(save-excursion
|
||||
;; Clear cruft inserted by bdamaged .cshrcs
|
||||
(goto-char 1)
|
||||
(re-search-forward "^SEND-PR:")
|
||||
(delete-region 1 (match-beginning 0)))))
|
||||
(set-buffer-modified-p nil)
|
||||
(send-pr:send-pr-mode)
|
||||
(setq send-pr:::site site)
|
||||
(setq send-pr:::spawn-to-send t)
|
||||
(send-pr::set-categories)
|
||||
(if (null send-pr:::categories)
|
||||
(progn
|
||||
(and send-pr:::err-buffer (kill-buffer send-pr:::err-buffer))
|
||||
(kill-buffer nil)
|
||||
(message "send-pr: no categories found"))
|
||||
(if (eq mail-default-reply-to t)
|
||||
(setq mail-default-reply-to (getenv "REPLYTO")))
|
||||
(and mail-default-reply-to
|
||||
(gnats::set-mail-field "Reply-To" mail-default-reply-to))
|
||||
(and mail-self-blind
|
||||
|
@ -261,6 +294,19 @@ to send the PR with `send-pr -b -f -'."
|
|||
(message (substitute-command-keys
|
||||
"To send the problem report use: \\[send-pr:submit-pr]"))))
|
||||
|
||||
(defvar send-pr::template-alist nil
|
||||
"An alist containing the output of send-pr -P <sitename> for various sites.")
|
||||
|
||||
(defun send-pr::insert-template (site)
|
||||
(let ((elt (assoc site send-pr::template-alist)))
|
||||
(if elt
|
||||
(save-excursion (insert (cdr elt)))
|
||||
(shell-command (concat "send-pr -P " site) t)
|
||||
(save-excursion
|
||||
(setq send-pr::template-alist
|
||||
(cons (cons site (buffer-substring (point-min) (point-max)))
|
||||
send-pr::template-alist))))))
|
||||
|
||||
(fset 'do-send-pr 'send-pr:submit-pr) ;backward compat
|
||||
(defun send-pr:submit-pr ()
|
||||
"Pipe the contents of the buffer *send-pr* to `send-pr -f -.' unless this
|
||||
|
@ -275,7 +321,7 @@ buffer was loaded with emacsclient, in which case save the buffer and exit."
|
|||
(save-buffer buffer)
|
||||
(kill-buffer buffer)
|
||||
(server-buffer-done buffer)))
|
||||
(t
|
||||
(send-pr:::spawn-to-send
|
||||
(or (and send-pr:::err-buffer
|
||||
(buffer-name send-pr:::err-buffer))
|
||||
(setq send-pr:::err-buffer
|
||||
|
@ -303,7 +349,10 @@ buffer was loaded with emacsclient, in which case save the buffer and exit."
|
|||
(set-buffer-modified-p nil)
|
||||
(bury-buffer))
|
||||
(pop-to-buffer err-buffer))
|
||||
))))
|
||||
))
|
||||
(t
|
||||
(save-buffer)
|
||||
(message "Exit emacs to send the PR."))))
|
||||
|
||||
;;;;---------------------------------------------------------------------------
|
||||
;;;; send-pr:send-pr-mode mode
|
||||
|
@ -344,6 +393,7 @@ if it is not nil."
|
|||
(make-local-variable 'send-pr:::site)
|
||||
(make-local-variable 'send-pr:::categories)
|
||||
(make-local-variable 'send-pr:::err-buffer)
|
||||
(make-local-variable 'send-pr:::spawn-to-send)
|
||||
(make-local-variable 'paragraph-separate)
|
||||
(setq paragraph-separate (concat (default-value 'paragraph-separate)
|
||||
"\\|" gnats::keyword "[ \t\n\f]*$"))
|
||||
|
@ -357,10 +407,12 @@ if it is not nil."
|
|||
;;;; Functions to read and replace field values.
|
||||
;;;;---------------------------------------------------------------------------
|
||||
|
||||
(defun gnats::position-on-field (field)
|
||||
(defun gnats::position-on-field (field &optional quiet)
|
||||
(goto-char (point-min))
|
||||
(if (not (re-search-forward (concat "^>" field ":") nil t))
|
||||
(error "Field `>%s:' not found." field)
|
||||
(if quiet
|
||||
nil
|
||||
(error "Field `>%s:' not found." field))
|
||||
(re-search-forward "[ \t\n\f]*")
|
||||
(if (looking-at gnats::keyword)
|
||||
(backward-char 1))
|
||||
|
@ -383,7 +435,7 @@ if it is not nil."
|
|||
(let (pos)
|
||||
(unwind-protect
|
||||
(save-excursion
|
||||
(if (not (gnats::position-on-field field))
|
||||
(if (not (gnats::position-on-field field t))
|
||||
nil
|
||||
(setq pos (point-marker))
|
||||
(if (or (looking-at "<.*>$") (eolp))
|
||||
|
@ -468,20 +520,22 @@ arguments of the field to change and the default value to use."
|
|||
new)
|
||||
(if (null old)
|
||||
(error "ACK")
|
||||
(let ((prompt (concat ">" field ": "))
|
||||
(domain (gnats::field-values field))
|
||||
(type (gnats::field-type field))
|
||||
(action (gnats::field-action field)))
|
||||
(or default (setq default (gnats::field-default field)))
|
||||
(setq new (if (eq type 'enum)
|
||||
(if (or (interactive-p) t)
|
||||
(let ((prompt (concat ">" field ": "))
|
||||
(domain (gnats::field-values field))
|
||||
(type (gnats::field-type field)))
|
||||
(or default (setq default (gnats::field-default field)))
|
||||
(setq new
|
||||
(if (eq type 'enum)
|
||||
(completing-read prompt domain nil t
|
||||
(if gnats::emacs-19p (cons default 0)
|
||||
default))
|
||||
(read-string prompt (if gnats::emacs-19p (cons default 1)
|
||||
default))))
|
||||
(gnats::set-field field new)
|
||||
(funcall action field old new)
|
||||
new))))
|
||||
default)))))
|
||||
(setq new default))
|
||||
(gnats::set-field field new)
|
||||
(funcall (gnats::field-action field) field old new)
|
||||
new)))
|
||||
|
||||
(defun gnats::set-field (field value)
|
||||
(save-excursion
|
||||
|
|
|
@ -50,7 +50,7 @@ send-pr \- send problem report (PR) to a central support site
|
|||
.B \-\-request-id
|
||||
]
|
||||
[
|
||||
.B \-v
|
||||
.B \-V
|
||||
]
|
||||
.SH DESCRIPTION
|
||||
.B send-pr
|
||||
|
@ -83,21 +83,27 @@ To ensure that a PR is handled promptly, it should contain your (unique)
|
|||
\fIsubmitter-id\fR and one of the available \fIcategories\fR to identify the
|
||||
problem area. (Use
|
||||
.B `send-pr -L'
|
||||
to see a list of categories.)
|
||||
.LP
|
||||
The
|
||||
.B send-pr
|
||||
template at your site should already be customized with your
|
||||
submitter-id (running `\|\fBinstall-sid\fP \fIsubmitter-id\fP\|' to
|
||||
accomplish this is part of the installation procedures for
|
||||
.BR send-pr ).
|
||||
If this hasn't been done, see your system administrator for your
|
||||
submitter-id, or request one from your support site by invoking
|
||||
.B `send-pr \-\-request\-id'.
|
||||
If your site does not distinguish between different user sites, or if
|
||||
you are not affiliated with the support site, use
|
||||
to see a list of categories).
|
||||
The PR should also contain a subject header, which is separate to the
|
||||
synopsis line.
|
||||
NetBSD does not use unique \fIsubmitter-id\fR's - all PR's use the
|
||||
default value of
|
||||
.B `net'
|
||||
for this field.
|
||||
.\" .LP
|
||||
.\" The
|
||||
.\" .B send-pr
|
||||
.\" template at your site should already be customized with your
|
||||
.\" submitter-id (running `\|\fBinstall-sid\fP \fIsubmitter-id\fP\|' to
|
||||
.\" accomplish this is part of the installation procedures for
|
||||
.\" .BR send-pr ).
|
||||
.\" If this hasn't been done, see your system administrator for your
|
||||
.\" submitter-id, or request one from your support site by invoking
|
||||
.\" .B `send-pr \-\-request\-id'.
|
||||
.\" If your site does not distinguish between different user sites, or if
|
||||
.\" you are not affiliated with the support site, use
|
||||
.\" .B `net'
|
||||
.\" for this field.
|
||||
.LP
|
||||
The more precise your problem description and the more complete your
|
||||
information, the faster your support team can solve your problems.
|
||||
|
@ -149,7 +155,7 @@ use a
|
|||
of
|
||||
.BR net \|'.
|
||||
.TP
|
||||
.B \-v
|
||||
.B \-V
|
||||
Display the
|
||||
.B send-pr
|
||||
version number.
|
||||
|
@ -162,19 +168,51 @@ both the template and
|
|||
itself will help ensure all necessary information will reach the
|
||||
support site.
|
||||
.SH ENVIRONMENT
|
||||
The environment variable
|
||||
.B EDITOR
|
||||
specifies the editor to invoke on the template.
|
||||
.br
|
||||
default:
|
||||
.B vi
|
||||
.sp
|
||||
If the environment variable
|
||||
.B PR_FORM
|
||||
is set, then its value is used as the file name of the template for
|
||||
.TP
|
||||
.SM GNATS_ROOT
|
||||
If the file $GNATS_ROOT/gnats-adm/config exists then it is used
|
||||
to provide newer configuration information. The default value
|
||||
is the empty string.
|
||||
.TP
|
||||
.SM LOGNAME
|
||||
Sets the default for the From and Reply-To fields of the problem report.
|
||||
Defaults to $USER if not set.
|
||||
.TP
|
||||
.SM NAME
|
||||
Sets the default for the Originator field of the problem report.
|
||||
If not set, then the file $HOME/.fullname is used. If
|
||||
$HOME/.fullname is not present, then an attempt is made to query
|
||||
the password file for a full name.
|
||||
.TP
|
||||
.SM ORGANIZATION
|
||||
The name of a file which contains the default for the Organization field
|
||||
of the problem report.
|
||||
.TP
|
||||
.SM PR_FORM
|
||||
If this is set, then its value is used as the file name of the template for
|
||||
your problem-report editing session. You can use this to start with a
|
||||
partially completed form (for example, a form with the identification
|
||||
fields already completed).
|
||||
.TP
|
||||
.SM REPLYTO
|
||||
Sets the default for the Reply-To field of the problem report. If not
|
||||
set, then it defaults to $LOGNAME.
|
||||
.TP
|
||||
.SM TMPDIR
|
||||
Specifies the temporary directory used for creating the problem report.
|
||||
This directory must exist with write permissions. Defaults to /tmp if
|
||||
not specified.
|
||||
.TP
|
||||
.SM USER_GNATS_SITE
|
||||
Used to set the default site you are reporting bugs to. Defaults to
|
||||
netbsd if not specified.
|
||||
.TP
|
||||
.SM VISUAL
|
||||
Specifies the editor to invoke on the template. If not set, then the
|
||||
variable EDITOR is used. If neither VISUAL nor EDITOR are
|
||||
set, then
|
||||
.BR vi (1)
|
||||
is used.
|
||||
.SH "HOW TO FILL OUT A PROBLEM REPORT"
|
||||
Problem reports have to be in a particular form so that a program can
|
||||
easily manage them. Please remember the following guidelines:
|
||||
|
@ -184,7 +222,7 @@ describe only
|
|||
with each problem report.
|
||||
.IP \(bu 3m
|
||||
For follow-up mail, use the same subject line as the one in the automatic
|
||||
acknowledgent. It consists of category, PR number and the original synopsis
|
||||
acknowledgement. It consists of category, PR number and the original synopsis
|
||||
line. This allows the support site to relate several mail messages to a
|
||||
particular PR and to record them automatically.
|
||||
.IP \(bu 3m
|
||||
|
@ -194,6 +232,65 @@ The subject and the synopsis line are not confidential. This is
|
|||
because open-bugs lists are compiled from them. Avoid confidential
|
||||
information there.
|
||||
.LP
|
||||
The
|
||||
.B severity
|
||||
field is to indicate the severity of the problem.
|
||||
The accepted values are:
|
||||
.IP \fBcritical\fR
|
||||
The product, component or concept is completely non-operational or some
|
||||
essential functionality is missing (e.g. kernel panic or program core dumps).
|
||||
No workaround is known.
|
||||
.IP \fBserious\fR
|
||||
The product, component or concept is not working properly or significant
|
||||
functionality is missing.
|
||||
Problems that would otherwise be considered
|
||||
.B critical
|
||||
are rated
|
||||
.B serious
|
||||
when a workaround is known.
|
||||
.IP \fBnon-critical\fR
|
||||
The product, component or concept is working in general, but lacks
|
||||
features, has irritating behavior, does something wrong, or doesn't
|
||||
match its documentation.
|
||||
.LP
|
||||
The default value is
|
||||
.B serious.
|
||||
.LP
|
||||
The
|
||||
.B priority
|
||||
field specifies
|
||||
how soon the problem report submitter requires a solution.
|
||||
The accepted values are:
|
||||
.IP \fBhigh\fR
|
||||
A solution is needed as soon as possible.
|
||||
.IP \fBmedium\fR
|
||||
The problem should be solved in the next release.
|
||||
.IP \fBlow\fR
|
||||
The problem should be solved in a future release.
|
||||
.LP
|
||||
The default value is
|
||||
.B medium.
|
||||
.LP
|
||||
The
|
||||
.B class
|
||||
of a problem report can be one of the following:
|
||||
.IP \fBsw-bug\fR
|
||||
A general software problem (
|
||||
.I `sw'
|
||||
stands for
|
||||
.I "software"
|
||||
).
|
||||
.IP \fBdoc-bug\fR
|
||||
A problem with the manual pages or other documentation.
|
||||
.IP \fBchange-request\fR
|
||||
A request for a change from existing behavior that is not a bug
|
||||
("It's nice, but it would be better if ...").
|
||||
.IP \fBsupport\fR
|
||||
A support problem or question.
|
||||
.LP
|
||||
The default value is
|
||||
.B sw-bug.
|
||||
.LP
|
||||
See the GNU
|
||||
.B Info
|
||||
file
|
||||
|
@ -205,12 +302,27 @@ Submit small code samples with the PR. Contact the support site for
|
|||
instructions on submitting larger test cases and problematic source
|
||||
code.
|
||||
.SH FILES
|
||||
.ta \w'/tmp/pbad$$ 'u
|
||||
/tmp/p$$ copy of PR used in editing session
|
||||
.br
|
||||
/tmp/pf$$ copy of empty PR form, for testing purposes
|
||||
.br
|
||||
/tmp/pbad$$ file for rejected PRs
|
||||
.SM /tmp/p$$
|
||||
copy of PR used in editing session
|
||||
.TP
|
||||
.SM /tmp/pf$$
|
||||
copy of empty PR form, for testing purposes
|
||||
.TP
|
||||
.SM /tmp/pbad$$
|
||||
file for rejected PRs
|
||||
.TP
|
||||
.SM $HOME/.fullname
|
||||
Contains the default for the Originator field of the problem
|
||||
report if $NAME is not set
|
||||
.TP
|
||||
.SM $HOME/.organization
|
||||
Contains the default for the Organization field of the problem
|
||||
report if $ORGANIZATION is not set.
|
||||
.TP
|
||||
.SM $HOME/.signature
|
||||
Contains the default for the Organization field of the problem
|
||||
report if $ORGANIZATION is not set and $HOME/.organization does
|
||||
not exist.
|
||||
.SH EMACS USER INTERFACE
|
||||
An Emacs user interface for
|
||||
.B send-pr
|
||||
|
@ -227,6 +339,9 @@ installation information. The Emacs LISP template file is
|
|||
.B send-pr-el.in
|
||||
and is installed as
|
||||
.BR send-pr.el .
|
||||
.SH WEB INTERFACE
|
||||
An interface to sending PR's is available on the NetBSD website at
|
||||
http://www.NetBSD.org/Gnats/.
|
||||
.SH INSTALLATION AND CONFIGURATION
|
||||
See
|
||||
.B send-pr.info
|
||||
|
@ -237,15 +352,15 @@ for installation instructions.
|
|||
.I Reporting Problems Using send-pr
|
||||
(also installed as the GNU Info file
|
||||
.BR send-pr.info ).
|
||||
.LP
|
||||
.BR gnats (l),
|
||||
.BR query-pr (1),
|
||||
.BR edit-pr (1),
|
||||
.BR gnats (8),
|
||||
.BR queue-pr (8),
|
||||
.BR at-pr (8),
|
||||
.BR mkcat (8),
|
||||
.BR mkdist (8).
|
||||
.\" .LP
|
||||
.\" .BR gnats (l),
|
||||
.\" .BR query-pr (1),
|
||||
.\" .BR edit-pr (1),
|
||||
.\" .BR gnats (8),
|
||||
.\" .BR queue-pr (8),
|
||||
.\" .BR at-pr (8),
|
||||
.\" .BR mkcat (8),
|
||||
.\" .BR mkdist (8).
|
||||
.SH AUTHORS
|
||||
Jeffrey Osier, Brendan Kehoe, Jason Merrill, Heinz G. Seidl (Cygnus
|
||||
Support)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Submit a problem report to a GNATS site.
|
||||
# Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
# Contributed by Brendan Kehoe (brendan@cygnus.com), based on a
|
||||
# version written by Heinz G. Seidl (hgs@ide.com).
|
||||
# version written by Heinz G. Seidl (hgs@cygnus.com).
|
||||
#
|
||||
# This file is part of GNU GNATS.
|
||||
#
|
||||
|
@ -37,7 +37,8 @@ GNATS_ADDR=xGNATS_ADDRx
|
|||
DATADIR=xDATADIRx
|
||||
|
||||
# If we've been moved around, try using GCC_EXEC_PREFIX.
|
||||
[ ! -d $DATADIR/gnats -a -d "$GCC_EXEC_PREFIX" ] && DATADIR=${GCC_EXEC_PREFIX}..
|
||||
[ ! -d $DATADIR/gnats -a -d "$GCC_EXEC_PREFIX" ] &&
|
||||
DATADIR=${GCC_EXEC_PREFIX}../../../lib
|
||||
|
||||
# The default release for this host.
|
||||
DEFAULT_RELEASE="xDEFAULT_RELEASEx"
|
||||
|
@ -55,6 +56,9 @@ GNATS_SITE=xGNATS_SITEx
|
|||
# host-dependent.
|
||||
MAIL_AGENT="xMAIL_AGENTx"
|
||||
|
||||
# How to read the passwd database.
|
||||
PASSWD="xPASSWDx"
|
||||
|
||||
ECHON=xECHONx
|
||||
|
||||
if [ $ECHON = bsd ] ; then
|
||||
|
@ -70,39 +74,46 @@ fi
|
|||
|
||||
#
|
||||
|
||||
[ -z "$TMPDIR" ] && TMPDIR=/tmp
|
||||
if [ -z "$TMPDIR" ]; then
|
||||
TMPDIR=/tmp
|
||||
else
|
||||
if [ "`echo $TMPDIR | grep '/$'`" != "" ]; then
|
||||
TMPDIR="`echo $TMPDIR | sed -e 's,/$,,'`"
|
||||
fi
|
||||
fi
|
||||
|
||||
TEMP=$TMPDIR/p$$
|
||||
BAD=$TMPDIR/pbad$$
|
||||
REF=$TMPDIR/pf$$
|
||||
TEMP=`mktemp -t p` || exit 1
|
||||
BAD=`mktemp -t pbad` || exit 1
|
||||
REF=`mktemp -t pf` || exit 1
|
||||
|
||||
if [ -z "$LOGNAME" -a -n "$USER" ]; then
|
||||
LOGNAME=$USER
|
||||
# find a user name
|
||||
if [ "$LOGNAME" = "" ]; then
|
||||
if [ "$USER" != "" ]; then
|
||||
LOGNAME="$USER"
|
||||
else
|
||||
LOGNAME="UNKNOWN"
|
||||
fi
|
||||
fi
|
||||
|
||||
FROM="$LOGNAME"
|
||||
REPLY_TO="$LOGNAME"
|
||||
if [ -z "$REPLYTO" ]; then
|
||||
REPLYTO="$LOGNAME"
|
||||
fi
|
||||
|
||||
# Find out the name of the originator of this PR.
|
||||
if [ -n "$NAME" ]; then
|
||||
ORIGINATOR="$NAME"
|
||||
elif [ -f $HOME/.fullname ]; then
|
||||
ORIGINATOR="`sed -e '1q' $HOME/.fullname`"
|
||||
elif [ -f /bin/domainname ]; then
|
||||
if [ "`/bin/domainname`" != "" -a -f /usr/bin/ypcat ]; then
|
||||
# Must use temp file due to incompatibilities in quoting behavior
|
||||
# and to protect shell metacharacters in the expansion of $LOGNAME
|
||||
/usr/bin/ypcat passwd 2>/dev/null | cat - /etc/passwd | grep "^$LOGNAME:" |
|
||||
cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
|
||||
ORIGINATOR="`cat $TEMP`"
|
||||
rm -f $TEMP
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$ORIGINATOR" = "" ]; then
|
||||
grep "^$LOGNAME:" /etc/passwd | cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
|
||||
ORIGINATOR="`cat $TEMP`"
|
||||
rm -f $TEMP
|
||||
else
|
||||
ORIGINATOR=`$PASSWD | sed -e /"^${LOGNAME}:"/'{s/^[^:]*:[^:]*:[^:]*:[^:]*:\([^,:;]*\).*$/\1/' -e q -e } -e d`
|
||||
case "$ORIGINATOR" in
|
||||
*'&'*)
|
||||
AMP=`echo $LOGNAME | tr '[a-z]' '[A-Z]'`
|
||||
AMP=`echo $AMP $LOGNAME | sed 's/^\(.\)[^ ]* ./\1/'`
|
||||
ORIGINATOR=`echo "$ORIGINATOR" | sed "s/&/$AMP/"`
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ -n "$ORGANIZATION" ]; then
|
||||
|
@ -131,10 +142,22 @@ else
|
|||
fi
|
||||
|
||||
# Find out some information.
|
||||
SYSTEM=`( [ -f /bin/uname ] && /bin/uname -a ) || \
|
||||
( [ -f /usr/bin/uname ] && /usr/bin/uname -a ) || echo ""`
|
||||
ARCH=`[ -f /bin/arch ] && /bin/arch`
|
||||
MACHINE=`[ -f /bin/machine ] && /bin/machine`
|
||||
if [ -f /bin/uname ]; then
|
||||
UNAME="/bin/uname"
|
||||
elif [ -f /usr/bin/uname ]; then
|
||||
UNAME="/usr/bin/uname"
|
||||
else
|
||||
UNAME="echo"
|
||||
fi
|
||||
SYSTEM=`$UNAME -a`
|
||||
ARCH=`$UNAME -p`
|
||||
if [ -z "$ARCH" -a -f /bin/arch ]; then
|
||||
ARCH=`/bin/arch`
|
||||
fi
|
||||
MACHINE=`$UNAME -m`
|
||||
if [ -z "$ARCH" -a -f /bin/machine ]; then
|
||||
ARCH=`/bin/arch`
|
||||
fi
|
||||
|
||||
COMMAND=`echo $0 | sed -e 's,.*/,,'`
|
||||
USAGE="Usage: $COMMAND [-PVL] [-t address] [-f filename] [--request-id]
|
||||
|
@ -180,7 +203,7 @@ while [ $# -gt 0 ]; do
|
|||
shift
|
||||
done
|
||||
|
||||
if [ -n "$USER_GNATS_SITE" ]; then
|
||||
if [ -n "$USER_GNATS_SITE" ] && [ "$USER_GNATS_SITE" != "$GNATS_SITE" ]; then
|
||||
GNATS_SITE=$USER_GNATS_SITE
|
||||
GNATS_ADDR=$USER_GNATS_SITE-gnats
|
||||
fi
|
||||
|
@ -233,22 +256,36 @@ esac
|
|||
|
||||
ORIGINATOR_C='<name of the PR author (one line)>'
|
||||
ORGANIZATION_C='<organization of PR author (multiple lines)>'
|
||||
CONFIDENTIAL_C='<[ yes | no ] (one line)>'
|
||||
CONFIDENTIAL_C='<[ no | yes ] (one line)>'
|
||||
SYNOPSIS_C='<synopsis of the problem (one line)>'
|
||||
SEVERITY_C='<[ non-critical | serious | critical ] (one line)>'
|
||||
PRIORITY_C='<[ low | medium | high ] (one line)>'
|
||||
CATEGORY_C='<name of the product (one line)>'
|
||||
CATEGORY_C='<problem report category - see top for list (one line)>'
|
||||
CLASS_C='<[ sw-bug | doc-bug | change-request | support ] (one line)>'
|
||||
RELEASE_C='<release number or tag (one line)>'
|
||||
ENVIRONMENT_C='<machine, os, target, libraries (multiple lines)>'
|
||||
RELEASE_C_1='<Please check that the above is correct for the bug being reported,>'
|
||||
RELEASE_C_2='<and append source date of snapshot, if applicable (one line).>'
|
||||
ENVIRONMENT_C_1='<The following information is extracted from your kernel. Please>'
|
||||
ENVIRONMENT_C_2='<append output of "ldd", "ident" where relevant (multiple lines).>'
|
||||
DESCRIPTION_C='<precise description of the problem (multiple lines)>'
|
||||
HOW_TO_REPEAT_C='<code/input/activities to reproduce the problem (multiple lines)>'
|
||||
FIX_C='<how to correct or work around the problem, if known (multiple lines)>'
|
||||
|
||||
# Catch some signals. ($xs kludge needed by Sun /bin/sh)
|
||||
xs=0
|
||||
trap 'rm -f $REF $TEMP; exit $xs' 0
|
||||
trap 'echo "$COMMAND: Aborting ..."; rm -f $REF $TEMP; xs=1; exit' 1 2 3 13 15
|
||||
TRAP_EXIT_ACTION='rm -f $REF $TEMP; exit $xs'
|
||||
TRAP_IGNORE_ACTION=''
|
||||
TRAP_ABORT_ACTION='echo "$COMMAND: Aborting ..."; rm -f $REF $TEMP; xs=1; exit'
|
||||
TRAP_ABORTSAVE_ACTION='
|
||||
echo "$COMMAND: Aborting ...";
|
||||
if cmp -s $REF $TEMP ; then
|
||||
rm $REF
|
||||
else
|
||||
echo "$COMMAND: the problem report remains in $BAD and is not sent."
|
||||
mv $REF $BAD
|
||||
fi
|
||||
rm -f $TEMP; xs=1; exit'
|
||||
trap "$TRAP_EXIT_ACTION" 0
|
||||
trap "$TRAP_ABORT_ACTION" 1 2 3 13 15
|
||||
|
||||
# If they told us to use a specific file, then do so.
|
||||
if [ -n "$IN_FILE" ]; then
|
||||
|
@ -291,6 +328,9 @@ SEND-PR:
|
|||
SEND-PR: Please consult the send-pr man page `send-pr(1)' or the Texinfo
|
||||
SEND-PR: manual if you are not sure how to fill out a problem report.
|
||||
SEND-PR:
|
||||
SEND-PR: NOTE: If you include a patch that corrects the problem, the
|
||||
SEND-PR: issue will probably be handled much more quickly.
|
||||
SEND-PR:
|
||||
SEND-PR: Choose from the following categories:
|
||||
SEND-PR:
|
||||
__EOF__
|
||||
|
@ -311,33 +351,26 @@ __EOF__
|
|||
To: $GNATS_ADDR
|
||||
Subject:
|
||||
From: $FROM
|
||||
Reply-To: $REPLY_TO
|
||||
Reply-To: $REPLYTO
|
||||
X-send-pr-version: $VERSION
|
||||
|
||||
|
||||
>Submitter-Id: $SUBMITTER
|
||||
>Originator: $ORIGINATOR
|
||||
>Submitter-Id: $SUBMITTER
|
||||
>Originator: $ORIGINATOR
|
||||
>Organization:
|
||||
`
|
||||
if [ -n "$ORGANIZATION" ]; then
|
||||
echo "$ORGANIZATION"
|
||||
else
|
||||
echo " $ORGANIZATION_C" ;
|
||||
fi ;
|
||||
`
|
||||
>Confidential: $CONFIDENTIAL_C
|
||||
${ORGANIZATION- $ORGANIZATION_C}
|
||||
>Confidential: $CONFIDENTIAL_C
|
||||
>Synopsis: $SYNOPSIS_C
|
||||
>Severity: $SEVERITY_C
|
||||
>Priority: $PRIORITY_C
|
||||
>Category: $CATEGORY_C
|
||||
>Category: $CATEGORY_C
|
||||
>Class: $CLASS_C
|
||||
>Release: `if [ -n "$DEFAULT_RELEASE" ]; then
|
||||
echo "$DEFAULT_RELEASE"
|
||||
else
|
||||
echo " $RELEASE_C"
|
||||
fi; `
|
||||
>Release: ${DEFAULT_RELEASE:-"unreleased"}
|
||||
$RELEASE_C_1
|
||||
$RELEASE_C_2
|
||||
>Environment:
|
||||
$ENVIRONMENT_C
|
||||
$ENVIRONMENT_C_1
|
||||
$ENVIRONMENT_C_2
|
||||
`[ -n "$SYSTEM" ] && echo System: $SYSTEM`
|
||||
`[ -n "$ARCH" ] && echo Architecture: $ARCH`
|
||||
`[ -n "$MACHINE" ] && echo Machine: $MACHINE`
|
||||
|
@ -358,7 +391,9 @@ __EOF__
|
|||
|
||||
chmod u+w $TEMP
|
||||
if [ -z "$REQUEST_ID" ]; then
|
||||
trap "$TRAP_IGNORE_ACTION" 2 3
|
||||
eval $EDIT $TEMP
|
||||
trap "$TRAP_ABORTSAVE_ACTION" 2 3
|
||||
else
|
||||
ed -s $TEMP << '__EOF__'
|
||||
/^Subject/s/^Subject:.*/Subject: request for a customer id/
|
||||
|
@ -448,8 +483,18 @@ while [ -z "$REQUEST_ID" ]; do
|
|||
""|sw-bug|doc-bug|change-request|support) CNT=`expr $CNT + 1` ;;
|
||||
*) echo "$COMMAND: \`$CLASS' is not a valid value for \`Class'."
|
||||
esac
|
||||
#
|
||||
# 6) Release
|
||||
#
|
||||
PATTERN=">Release:"
|
||||
RELEASE=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
|
||||
if [ -z "$RELEASE" ]; then
|
||||
echo "$COMMAND: you must include a Release: field in your report."
|
||||
else
|
||||
CNT=`expr $CNT + 1`
|
||||
fi
|
||||
|
||||
[ $CNT -lt 5 -a -z "$BATCH" ] &&
|
||||
[ $CNT -lt 6 -a -z "$BATCH" ] &&
|
||||
echo "Errors were found with the problem report."
|
||||
|
||||
while true; do
|
||||
|
@ -457,7 +502,7 @@ while [ -z "$REQUEST_ID" ]; do
|
|||
$ECHON1 "a)bort, e)dit or s)end? $ECHON2"
|
||||
read input
|
||||
else
|
||||
if [ $CNT -eq 5 ]; then
|
||||
if [ $CNT -eq 6 ]; then
|
||||
input=s
|
||||
else
|
||||
input=a
|
||||
|
@ -474,7 +519,9 @@ while [ -z "$REQUEST_ID" ]; do
|
|||
xs=1; exit
|
||||
;;
|
||||
e*)
|
||||
eval $EDIT $TEMP
|
||||
trap "$TRAP_IGNORE_ACTION" 2 3
|
||||
eval $EDIT $TEMP
|
||||
trap "$TRAP_ABORTSAVE_ACTION" 2 3
|
||||
continue 2
|
||||
;;
|
||||
s*)
|
||||
|
@ -497,8 +544,10 @@ sed -e "
|
|||
/^>Priority:/s;<.*>;;
|
||||
/^>Category:/s;$CATEGORY_C;;
|
||||
/^>Class:/s;<.*>;;
|
||||
/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C;;
|
||||
/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C;;
|
||||
/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C_1;;
|
||||
/^>Release:/,/^>[A-Za-z-]*:/s;$RELEASE_C_2;;
|
||||
/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C_1;;
|
||||
/^>Environment:/,/^>[A-Za-z-]*:/s;$ENVIRONMENT_C_2;;
|
||||
/^>Description:/,/^>[A-Za-z-]*:/s;$DESCRIPTION_C;;
|
||||
/^>How-To-Repeat:/,/^>[A-Za-z-]*:/s;$HOW_TO_REPEAT_C;;
|
||||
/^>Fix:/,/^>[A-Za-z-]*:/s;$FIX_C;;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
\input texinfo @c -*-texinfo-*-
|
||||
@c $NetBSD: send-pr.texi,v 1.1.1.1 2016/01/14 21:06:14 christos Exp $
|
||||
@setfilename send-pr.info
|
||||
@settitle Reporting Problems Using send-pr
|
||||
|
||||
|
@ -11,13 +10,13 @@
|
|||
@ifinfo
|
||||
@format
|
||||
START-INFO-DIR-ENTRY
|
||||
* send-pr:: Reporting problems--using send-pr
|
||||
* send-pr: (send-pr). Reporting problems--using send-pr
|
||||
END-INFO-DIR-ENTRY
|
||||
@end format
|
||||
@end ifinfo
|
||||
|
||||
@ifinfo
|
||||
Copyright @copyright{} 1993 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1993, 1994 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to make and distribute verbatim copies of
|
||||
this manual provided the copyright notice and this permission notice
|
||||
|
@ -51,7 +50,7 @@ into another language, under the above conditions for modified versions.
|
|||
|
||||
@vskip 0pt plus 1filll
|
||||
|
||||
Copyright @copyright{} 1993 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1993, 1994 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to make and distribute verbatim copies of
|
||||
this manual provided the copyright notice and this permission notice
|
||||
|
@ -233,7 +232,7 @@ X-send-pr-version: send-pr @value{VERSION}
|
|||
>Originator: Jeffrey Osier
|
||||
>Organization:
|
||||
Imaginary Software, Ltd.
|
||||
>Confidential: <[ yes | no ] (one line)>
|
||||
>Confidential: <[ no | yes ] (one line)>
|
||||
>Synopsis: <synopsis of the problem (one line)>
|
||||
>Severity: <[ non-critical | serious | critical ] (one line)>
|
||||
>Priority: <[ low | medium | high ] (one line)>
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
@set VERSION 3.2
|
||||
@c $NetBSD: version.texi,v 1.2 2016/01/14 21:13:20 christos Exp $
|
||||
@set VERSION 3.95
|
||||
|
|
|
@ -0,0 +1,134 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# $NetBSD: send-pr2netbsd,v 1.1 2016/01/14 21:13:20 christos Exp $
|
||||
#
|
||||
# Copyright (c) 2016 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
# send-pr2netbsd: convert an glibc source tree into a
|
||||
# netbsd send-pr source tree,
|
||||
#
|
||||
# Rough instructions for importing new send-pr release:
|
||||
#
|
||||
# $ cd /some/where/temporary
|
||||
# $ tar xpfz /gnats/release/tar/file
|
||||
# $ sh /usr/src/external/gpl2/send-pr/libmalloc2netbsd malloc `pwd`
|
||||
# $ cd `pwd`/src/external/gpl2/send-pr/dist
|
||||
# $ cvs import -m "Import send-pr YYYY-MM-DD" src/external/gpl2/send-pr/dist FSF
|
||||
# merge sources according to instructions given
|
||||
# e.g. cvs -d cvs.netbsd.org:/cvsroot checkout -jsend-pr-1-19 -jlibmalloc-1-19-1 src/gnu/dist/libmalloc
|
||||
|
||||
if [ $# -ne 2 ]; then echo "send-pr2netbsd src dest"; exit 1; fi
|
||||
|
||||
r=$1
|
||||
d=$2/src/external/gpl2/send-pr/dist
|
||||
|
||||
case "$d" in
|
||||
/*)
|
||||
;;
|
||||
*)
|
||||
d=`/bin/pwd`/$d
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$r" in
|
||||
/*)
|
||||
;;
|
||||
*)
|
||||
r=`/bin/pwd`/$r
|
||||
;;
|
||||
esac
|
||||
|
||||
echo preparing directory $d
|
||||
rm -rf $d
|
||||
mkdir -p $d
|
||||
|
||||
### Copy the files and directories
|
||||
echo copying $r to $d
|
||||
cd $r
|
||||
pax -rw send-pr $d
|
||||
chmod -x $d/*
|
||||
|
||||
# cd to import directory
|
||||
cd $d
|
||||
|
||||
#
|
||||
|
||||
### Remove the $'s around RCS tags
|
||||
cleantags $d
|
||||
|
||||
### Add our NetBSD RCS Id
|
||||
find $d -type f -name '*.[chly]' -print | while read c; do
|
||||
sed 1q < $c | grep -q '\$NetBSD' || (
|
||||
echo "/* \$NetBSD\$ */" >/tmp/send-pr3n$$
|
||||
echo "" >>/tmp/send-pr3n$$
|
||||
cat $c >> /tmp/send-pr3n$$
|
||||
mv /tmp/send-pr3n$$ $c && echo added NetBSD RCS tag to $c
|
||||
)
|
||||
done
|
||||
|
||||
find $d -type f -name '*.cpp' -print | while read c; do
|
||||
sed 1q < $c | grep -q '\$NetBSD' || (
|
||||
echo "/* \$NetBSD\$ */" >/tmp/send-pr3n$$
|
||||
echo "" >>/tmp/send-pr3n$$
|
||||
cat $c >> /tmp/send-pr3n$$
|
||||
mv /tmp/send-pr3n$$ $c && echo added NetBSD RCS tag to $c
|
||||
)
|
||||
done
|
||||
|
||||
find $d -type f -name '*.[0-9]' -print | while read m; do
|
||||
sed 1q < $m | grep -q '\$NetBSD' || (
|
||||
echo ".\\\" \$NetBSD\$" >/tmp/send-pr2m$$
|
||||
echo ".\\\"" >>/tmp/send-pr2m$$
|
||||
cat $m >> /tmp/send-pr2m$$
|
||||
mv /tmp/send-pr2m$$ $m && echo added NetBSD RCS tag to $m
|
||||
)
|
||||
done
|
||||
|
||||
find $d -type f -name '*.texi' -print | while read t; do
|
||||
sed "2 s/^/@c \$NetBSD\$\\
|
||||
/" < $t > /tmp/send-pr4t$$
|
||||
mv /tmp/send-pr4t$$ $t && echo added NetBSD RCS tag to $t
|
||||
done
|
||||
|
||||
echo done
|
||||
|
||||
### Clean up any CVS directories that might be around.
|
||||
echo "cleaning up CVS residue."
|
||||
(
|
||||
cd $d
|
||||
find . -type d -name "CVS" -print | xargs rm -r
|
||||
)
|
||||
echo done
|
||||
|
||||
### Fixing file and directory permissions.
|
||||
echo "Fixing file/directory permissions."
|
||||
(
|
||||
cd $d
|
||||
find . -type f -print | xargs chmod u+rw,go+r
|
||||
find . -type d -print | xargs chmod u+rwx,go+rx
|
||||
)
|
||||
echo done
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue