mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 19:03:24 +00:00
Don't version-control generated file grammat-wy.el
This file is needed for CEDET's bootstrap, tho, so we now keep a copy of it under version control in `gram-wy-boot.el`, very much like we do with the `ldefs-boot.el` copy of `loaddefs.el`. * lisp/cedet/semantic/grm-wy-boot.el: Rename from `lisp/cedet/semantic/grammar-wy.el`. * lisp/cedet/semantic/grammar.el: Load `grm-wy-boot.el` if `grammar-wy.el` hasn't been generated yet. * admin/update_autogen: Also refresh `grm-wy-boot.el`. * admin/grammars/Makefile.in (WISENT): Add `grammar-wy.el` to the generated files. * .gitignore: Add `grammar-wy.el`.
This commit is contained in:
parent
fc3caa45ef
commit
214dfbfea0
6 changed files with 22 additions and 14 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -88,6 +88,7 @@ lisp/cedet/semantic/wisent/javat-wy.el
|
||||||
lisp/cedet/semantic/wisent/js-wy.el
|
lisp/cedet/semantic/wisent/js-wy.el
|
||||||
lisp/cedet/semantic/wisent/python-wy.el
|
lisp/cedet/semantic/wisent/python-wy.el
|
||||||
lisp/cedet/srecode/srt-wy.el
|
lisp/cedet/srecode/srt-wy.el
|
||||||
|
lisp/cedet/semantic/grammar-wy.el
|
||||||
lisp/eshell/esh-groups.el
|
lisp/eshell/esh-groups.el
|
||||||
lisp/finder-inf.el
|
lisp/finder-inf.el
|
||||||
lisp/leim/ja-dic/
|
lisp/leim/ja-dic/
|
||||||
|
|
|
@ -51,14 +51,11 @@ BOVINE = \
|
||||||
${bovinedir}/make-by.el \
|
${bovinedir}/make-by.el \
|
||||||
${bovinedir}/scm-by.el
|
${bovinedir}/scm-by.el
|
||||||
|
|
||||||
## FIXME Should include this one too:
|
WISENT = \
|
||||||
## ${cedetdir}/semantic/grammar-wy.el
|
${cedetdir}/semantic/grammar-wy.el \
|
||||||
## but semantic/grammar.el (which is what we use to generate grammar-wy.el)
|
${wisentdir}/javat-wy.el \
|
||||||
## requires it! https://debbugs.gnu.org/16008
|
${wisentdir}/js-wy.el \
|
||||||
WISENT = \
|
${wisentdir}/python-wy.el \
|
||||||
${wisentdir}/javat-wy.el \
|
|
||||||
${wisentdir}/js-wy.el \
|
|
||||||
${wisentdir}/python-wy.el \
|
|
||||||
${cedetdir}/srecode/srt-wy.el
|
${cedetdir}/srecode/srt-wy.el
|
||||||
|
|
||||||
ALL = ${BOVINE} ${WISENT}
|
ALL = ${BOVINE} ${WISENT}
|
||||||
|
|
|
@ -317,7 +317,7 @@ EOF
|
||||||
echo "Finding loaddef targets..."
|
echo "Finding loaddef targets..."
|
||||||
|
|
||||||
find lisp -name '*.el' -exec grep '^;.*generated-autoload-file:' {} + | \
|
find lisp -name '*.el' -exec grep '^;.*generated-autoload-file:' {} + | \
|
||||||
sed -e '/loaddefs\|esh-groups/d' -e 's|/[^/]*: "|/|' -e 's/"//g' \
|
sed -e '/loaddefs\|esh-groups/d' -e 's|/[^/]*: "|/|' -e 's/"//g' \
|
||||||
>| $tempfile || die "Error finding targets"
|
>| $tempfile || die "Error finding targets"
|
||||||
|
|
||||||
genfiles=
|
genfiles=
|
||||||
|
@ -363,17 +363,23 @@ make -C lisp "$@" autoloads EMACS=../src/bootstrap-emacs || die "make src error"
|
||||||
|
|
||||||
|
|
||||||
## Ignore comment differences.
|
## Ignore comment differences.
|
||||||
[ ! "$lboot_flag" ] || \
|
[ ! "$lboot_flag" ] || \
|
||||||
diff -q -I '^;' $ldefs_in $ldefs_out || \
|
diff -q -I '^;' $ldefs_in $ldefs_out || \
|
||||||
cp $ldefs_in $ldefs_out || die "cp ldefs_boot error"
|
cp $ldefs_in $ldefs_out || die "cp ldefs_boot error"
|
||||||
|
|
||||||
|
# Refresh the prebuilt grammar-wy.el
|
||||||
|
grammar_in=lisp/cedet/semantic/grammar-wy.el
|
||||||
|
grammar_out=lisp/cedet/semantic/grm-wy-boot.el
|
||||||
|
make -C admin/grammars/ ../../$grammar_in
|
||||||
|
cp $grammar_in $grammar_out || die "cp grm_wy_boot error"
|
||||||
|
|
||||||
|
|
||||||
echo "Checking status of loaddef files..."
|
echo "Checking status of loaddef files..."
|
||||||
|
|
||||||
## It probably would be fine to just check+commit lisp/, since
|
## It probably would be fine to just check+commit lisp/, since
|
||||||
## making autoloads should not effect any other files. But better
|
## making autoloads should not effect any other files. But better
|
||||||
## safe than sorry.
|
## safe than sorry.
|
||||||
modified=$(status $genfiles $ldefs_out) || die
|
modified=$(status $genfiles $ldefs_out $grammar_out) || die
|
||||||
|
|
||||||
|
|
||||||
commit "loaddefs" $modified || die "commit error"
|
commit "loaddefs" $modified || die "commit error"
|
||||||
|
|
|
@ -31,7 +31,12 @@
|
||||||
(require 'semantic/format)
|
(require 'semantic/format)
|
||||||
;; FIXME this is a generated file, but we need to load this file to
|
;; FIXME this is a generated file, but we need to load this file to
|
||||||
;; generate it!
|
;; generate it!
|
||||||
(require 'semantic/grammar-wy)
|
;; We need `semantic/grammar-wy.el' but we're also needed to generate
|
||||||
|
;; that file from `grammar.wy', so to break the dependency, we keep
|
||||||
|
;; a bootstrap copy of `grammar-wy.el' in `grm-wy-boot.el'. See bug#16008.
|
||||||
|
(eval-and-compile
|
||||||
|
(unless (require 'semantic/grammar-wy nil t)
|
||||||
|
(load "semantic/grm-wy-boot")))
|
||||||
(require 'semantic/idle)
|
(require 'semantic/idle)
|
||||||
(require 'help-fns)
|
(require 'help-fns)
|
||||||
(require 'semantic/analyze)
|
(require 'semantic/analyze)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
;;; eieio-base.el --- Base classes for EIEIO. -*- lexical-binding:t -*-
|
;;; eieio-base.el --- Base classes for EIEIO. -*- lexical-binding:t -*-
|
||||||
|
|
||||||
;;; Copyright (C) 2000-2002, 2004-2005, 2007-2021 Free Software
|
;; Copyright (C) 2000-2021 Free Software Foundation, Inc.
|
||||||
;;; Foundation, Inc.
|
|
||||||
|
|
||||||
;; Author: Eric M. Ludlam <zappo@gnu.org>
|
;; Author: Eric M. Ludlam <zappo@gnu.org>
|
||||||
;; Keywords: OO, lisp
|
;; Keywords: OO, lisp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue