The README was regenerated from the built crash binary before every
release ("crash -h README > README"), which filled the crash and gdb
version numbers into the example output and silently overwrote any edit
made to the README file itself. Drop that, and use the generic version
style already used elsewhere in the file for the remaining fixed numbers,
so that README is a normal source file that a release no longer rewrites.
"crash -h README" keeps printing the in-tool README, whose version and
date lines are still filled in at run time from help.c.
Assisted-by: LLM
Signed-off-by: Dave Young <yangrr.2009(a)tsinghua.org.cn>
---
Makefile | 3 ---
README | 6 +++---
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 37c3f6bf301a..b1d48b169489 100644
--- a/Makefile
+++ b/Makefile
@@ -658,8 +658,6 @@ files: make_configure
# there is no separate gdb_files target.
#
show_files:
- @if [ -f ${PROGRAM} ]; then \
- ./${PROGRAM} --no_scroll --no_crashrc -h README > README; fi
@echo ${SOURCE_FILES} Makefile ${GDB_FILES} ${GDB_PATCH_FILES} ${GPL_FILES} README \
crash-release crash.8 ${EXTENSION_SOURCE_FILES} ${MEMORY_DRIVER_FILES}
@@ -703,7 +701,6 @@ do_release:
crash-release crash.8 ${EXTENSION_SOURCE_FILES} ${MEMORY_DRIVER_FILES} | \
(cd ./RELDIR/${PROGRAM}-${VERSION}; tar xf -)
@cp ${GDB}.tar.gz ./RELDIR/${PROGRAM}-${VERSION}
- @./${PROGRAM} --no_scroll --no_crashrc -h README > README
@cp README ./RELDIR/${PROGRAM}-${VERSION}/README
@(cd ./RELDIR; find . -exec chown root {} ";")
@(cd ./RELDIR; find . -exec chgrp root {} ";")
diff --git a/README b/README
index a4e22d95093a..1f8004842b0a 100644
--- a/README
+++ b/README
@@ -173,7 +173,7 @@
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for
details.
- GNU gdb 16.2
+ GNU gdb 16.x
Copyright 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
@@ -213,7 +213,7 @@
exit log repeat timer
extend mach runq tree
- crash version: 9.0.0 gdb version: 16.2
+ crash version: 9.0.x gdb version: 16.x
For help on any command above, enter "help <command>".
For help on input options, enter "help input".
For help on output options, enter "help output".
@@ -241,7 +241,7 @@
certain conditions. Enter "help copying" to see the conditions.
This program has absolutely no warranty. Enter "help warranty" for
details.
- GNU gdb 16.2
+ GNU gdb 16.x
Copyright 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
--
2.51.1