On Wed, Nov 08, 2017 at 04:44:45PM +0300, Edgar Kaziakhmedov wrote:
> Since arch_definitions.h contains full description about architectures,
> arch_includes.h and arch_personalities.h can be generated.
> 
> * tools/asinfo/gen_asinfo_files.sh: New file.
> * bootstrap: Add it.
> * tools/asinfo/arch_includes.h: Delete it.
> * tools/asinfo/arch_personalities.h: Likewise.
> * tools/asinfo/Makefile.am: Include Makemodule.am.
> (asinfo_SOURCES): Add $(ARCH_AUX_FILES).
> * tools/asinfo/README-arch: New README explaining how to add new
> architecture/ABI to asinfo tool.
[...]
> +     #Makemodule.am
> +     (
> +     echo -n \
> +"ARCH_AUX_FILES = ${includes_file} ${pers_file}\n\
> +\$(top_srcdir)/tools/asinfo/${includes_file}: \
> +\$(top_srcdir)/tools/asinfo/${defs_file} \
> +\$(top_srcdir)/tools/asinfo/gen_asinfo_files.sh\n\
> +     \$(AM_V_GEN)\$(top_srcdir)/tools/asinfo/gen_asinfo_files.sh\n\
> +\$(top_srcdir)/tools/asinfo/${pers_file}: \
> +\$(top_srcdir)/tools/asinfo/${defs_file} \
> +\$(top_srcdir)/tools/asinfo/gen_asinfo_files.sh\n\
> +     \$(AM_V_GEN)\$(top_srcdir)/tools/asinfo/gen_asinfo_files.sh"
> +     ) > "${output}/Makemodule.am"
> +     #.gitignore
> +     (
> +     echo -n \
> +"/${includes_file}\n\
> +/${pers_file}\n\
> +/Makemodule.am\n\
> +/.gitignore"
> +     ) > "${output}/.gitignore"

Neither the shell nor echo -n interpret \n, so Makemodule.am and gitignore
end up filled with garbage.  I wonder how does it work for you.

Let's use cat with here-document instead.



-- 
ldv

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to