Re: [PATCH] dejagnu: add support for silent builds with site.exp

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <YaMBxEou5bG8lXAd@vapier>
On 27 Nov 2021 18:45, Karl Berry wrote:
> Hi Mike,
> 
>     Subject: [PATCH] dejagnu: add support for silent builds with site.exp
> 
> I pushed the change.
> 
>     https://sourceware.org/git/?p=binutils-gdb.git;a=summary
>     after you configure+make, you can iterate with just `make site.exp`.
> 
> I tried, but failed to really test the change. Hope it flies. --thanks, karl.

seems to work.  i tested with:

automake.git$ sudo cp lib/am/dejagnu.am /usr/share/automake-1.15/am/dejagnu.am

gdb.git$ cd sim && automake-1.15

build$ cd sim && make site.exp
/bin/sh ./config.status --recheck
...
configure: creating ./config.status
 /bin/sh ./config.status
config.status: creating Makefile
... 
  GEN      site.exp

build/sim$ rm site.exp && make site.exp V=1
set -e; ( \
echo '## these variables are automatically generated by make ##'; \
echo '# Do not edit here.  If you wish to override these values'; \
echo '# edit the last section'; \
echo 'set srcdir "../../../sim"'; \
echo "set objdir \"`pwd`\""; \
echo 'set build_alias "x86_64-pc-linux-gnu"'; \
echo 'set build_triplet x86_64-pc-linux-gnu'; \
echo 'set host_alias "x86_64-pc-linux-gnu"'; \
echo 'set host_triplet x86_64-pc-linux-gnu'; \
echo 'set target_alias "mn10300-elf"'; \
echo 'set target_triplet mn10300-unknown-elf'; \
list='site-sim-config.exp'; \
for f in $list; do \
  echo "## Begin content included from file $f.  Do not modify. ##"; \
  cat `test -f "$f" || echo '../../../sim/'`$f; \
  echo "## End content included from file $f. ##"; \
done; \
echo "## End of auto-generated content; you can edit from here. ##"; \
if test -f site.exp; then \
  sed -e '1,/^## End of auto-generated content.*##/d' site.exp; \
fi; \
) >site.tmp; \
rm -f site.bak; \
test ! -f site.exp || mv site.exp site.bak; \
mv site.tmp site.exp
-mike
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmGjAcQACgkQQWM7n+g3
9YEk6hAAmwI9Y3XT1RGDn3dT0eSWzESCV9VuaFFZ0fjBS2nCOtuBBk1UwMavTJpN
ctjS2+gxvyqGGvyXe+LMIJX1OaWcFlsuo51eQQexaUULc9247a4gP9ZdqO+cBO9v
6AwJPjBnaN0K2NGBrM+FTv59hSmRwEgRfH0SRjNLX1y9MiTULnQqur/hM7KhvZqJ
+TUUwgu1uS2MhbpoqX/2DA/pLX/pVJONXaprHMqU1klrLeIBTOUq9wyhKSIf3QGf
iUiCqh4A5CPuvnZo3JhzKd8w1OOlrG3fVd5TI2wpfGpPCDoOLfxx8WYggx0Dssbm
PfDPUC/k2+OQfzIpRW9ucb4kFTHoAR3F8NyJDFhOqzpWhLqZhpeVWE/8HjS3oXaT
FMPmIBVz3zWIu6xE7cP/9cX1awePcKCTTZ0yw6vlgfSQZyFKajkB67siYo8hQBHc
ZslQod1SEclCfsJWYL/NxoaPXVKPxoteQMKXE95k1q5Wf4eQO9EQL2VcgEw6pf51
3nlug3Lgx4ApUuytevOG1Ie7JHFJvSeOZhkhAjxb29RbPfQIDXEynLsmVXu6zc1C
hAJgNCU33LUXtHJzi2yqu4IgNu9vGEd9LfUyJ+KPl0kZIxl2leZtlyq7rbbT74eA
/nQ/K/J3Z4mquzyqmA+n8k7szcXSC78i+pqcDBDlJAfSqG28SLc=
=W+Nb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.