mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 03:13:24 +00:00
* autogen/update_autogen: Add a separate -L option for ldefs-boot.el.
This commit is contained in:
parent
12fd53e243
commit
11043dbd42
1 changed files with 7 additions and 3 deletions
|
@ -51,7 +51,7 @@ cd ../
|
||||||
usage ()
|
usage ()
|
||||||
{
|
{
|
||||||
cat 1>&2 <<EOF
|
cat 1>&2 <<EOF
|
||||||
Usage: ${PN} [-f] [-c] [-q] [-l] [-C] [-- make-flags]
|
Usage: ${PN} [-f] [-c] [-q] [-l [-L]] [-C] [-- make-flags]
|
||||||
Update the generated files in the Emacs autogen/ directory.
|
Update the generated files in the Emacs autogen/ directory.
|
||||||
Options:
|
Options:
|
||||||
-f: force an update even if the source files are locally modified.
|
-f: force an update even if the source files are locally modified.
|
||||||
|
@ -60,6 +60,7 @@ Options:
|
||||||
-q: be quiet; only give error messages, not status messages.
|
-q: be quiet; only give error messages, not status messages.
|
||||||
-l: also update the versioned loaddefs-like files in lisp/.
|
-l: also update the versioned loaddefs-like files in lisp/.
|
||||||
This requires a build. Passes any non-option args to make (eg -- -j2).
|
This requires a build. Passes any non-option args to make (eg -- -j2).
|
||||||
|
-L: also update ldefs-boot.el.
|
||||||
-C: start from a clean state. Slower, but more correct.
|
-C: start from a clean state. Slower, but more correct.
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -73,6 +74,7 @@ commit=
|
||||||
quiet=
|
quiet=
|
||||||
clean=
|
clean=
|
||||||
ldefs_flag=
|
ldefs_flag=
|
||||||
|
lboot_flag=
|
||||||
|
|
||||||
## Parameters.
|
## Parameters.
|
||||||
ldefs_in=lisp/loaddefs.el
|
ldefs_in=lisp/loaddefs.el
|
||||||
|
@ -91,7 +93,7 @@ tempfile=/tmp/$PN.$$
|
||||||
trap "rm -f $tempfile 2> /dev/null" EXIT
|
trap "rm -f $tempfile 2> /dev/null" EXIT
|
||||||
|
|
||||||
|
|
||||||
while getopts ":hcflqC" option ; do
|
while getopts ":hcflqCL" option ; do
|
||||||
case $option in
|
case $option in
|
||||||
(h) usage ;;
|
(h) usage ;;
|
||||||
|
|
||||||
|
@ -105,6 +107,8 @@ while getopts ":hcflqC" option ; do
|
||||||
|
|
||||||
(C) clean=1 ;;
|
(C) clean=1 ;;
|
||||||
|
|
||||||
|
(L) lboot_flag=1 ;;
|
||||||
|
|
||||||
(\?) die "Bad option -$OPTARG" ;;
|
(\?) die "Bad option -$OPTARG" ;;
|
||||||
|
|
||||||
(:) die "Option -$OPTARG requires an argument" ;;
|
(:) die "Option -$OPTARG requires an argument" ;;
|
||||||
|
@ -264,7 +268,7 @@ echo "Running lisp/ make..."
|
||||||
make -C lisp "$@" autoloads EMACS=../src/bootstrap-emacs || die "make src error"
|
make -C lisp "$@" autoloads EMACS=../src/bootstrap-emacs || die "make src error"
|
||||||
|
|
||||||
|
|
||||||
cp $ldefs_in $ldefs_out || die "cp ldefs_boot error"
|
[ ! "$lboot_flag" ] || cp $ldefs_in $ldefs_out || die "cp ldefs_boot error"
|
||||||
|
|
||||||
|
|
||||||
cd lisp
|
cd lisp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue