summaryrefslogtreecommitdiff
path: root/lib/depcomp
Commit message (Collapse)AuthorAgeFilesLines
* maint: make update-copyrightMike Frysinger2023-01-041-1/+1
|
* doc: typo in depcomp.Karl Berry2022-09-181-2/+2
| | | | * lib/depcomp: obsosete -> obsolete. Report from anonymous.
* lib: drop unused shell variablesPavel Raiskup2022-01-181-1/+0
| | | | | | | | Detected by ShellCheck. * lib/depcomp: Drop never used $digits. * lib/ylwrap: Drop --basedir and $basedir, seems like that was old C&P error from 210797967a.
* maint: make update-copyrightJim Meyering2022-01-121-1/+1
|
* maint: make update-copyrightJim Meyering2021-07-111-1/+1
|
* maint: make update-copyrightJim Meyering2020-01-011-1/+1
|
* maint: make update-copyrightPaul Eggert2019-10-141-1/+1
|
* maint: write-file-hooks -> before-save-hookPaul Eggert2018-03-061-2/+2
| | | | | | | | | | | write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and it's time to use the recommended replacement. Problem reported by Glenn Morris in: https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html * contrib/tap-driver.pl, lib/compile, lib/depcomp, lib/install-sh: * lib/mdate-sh, lib/missing, lib/mkinstalldirs, lib/py-compile: * lib/tap-driver.sh, lib/test-driver, lib/ylwrap: Update hook usage for files where Automake is the canonical source.
* maint: Update copyright years to 2018Mathieu Lirzin2018-01-041-1/+1
| | | | This update has been made with 'make update-copyright'.
* Prefer https: URLsPaul Eggert2017-09-191-2/+2
| | | | | | | | | | | | | | | | | | | | | In Gnulib, Emacs, etc. we are changing ftp: and http: URLs to use https:, to discourage man-in-the-middle attacks when downloading software. The attached patch propagates these changes upstream to Automake. This patch does not affect files that Automake is downstream of, which I'll patch separately. Althouth the resources are not secret, plain HTTP is vulnerable to malicious routers that tamper with responses from GNU servers, and this sort of thing is all too common when people in some other countries browse US-based websites. See, for example: Aceto G, Botta A, Pescapé A, Awan MF, Ahmad T, Qaisar S. Analyzing internet censorship in Pakistan. RTSI 2016. https://dx.doi.org/10.1109/RTSI.2016.7740626 HTTPS is not a complete solution here, but it can be a significant help. The GNU project regularly serves up code to users, so we should take some care here.
* maint: Update copyright years to 2017.Mathieu Lirzin2017-03-021-1/+1
| | | | This update has been made with 'make update-copyright'.
* maint: port time-stamp-time-zone to strict POSIXPaul Eggert2016-01-121-2/+2
| | | | | Set time-stamp-time-zone to "UTC0", not to "UTC", as POSIX defines TZ="UTC0" not TZ="UTC".
* maint: update copyright years to 2015 (branch 'micro')Stefano Lattarini2015-01-051-1/+1
| | | | Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* maint: update copyright yearsStefano Lattarini2014-04-211-1/+1
| | | | | | We've been in 2014 already for few months now... Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: avoid trailing backslash in depfile for depmode=msvc7Peter Rosin2013-05-301-1/+2
| | | | | | | | | | | | | | | When compiling a file without any dependencies (no #includes), the msvc7 depmode (and consequently msvc7msys) generates a depfile Makefile fragment with the last line ending with a backslash. This is less robust than needed. Fixes automake bug#14501. * lib/depcomp (msvc7): Finish off the depfile Makefile fragment with an empty line. (scriptversion): Update. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
* maint: update copyright year for 2013 (in branch maint)Stefano Lattarini2012-12-311-1/+1
| | | | Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: remove 'icc' depmode, add 'tcc' oneStefano Lattarini2012-11-241-41/+21
| | | | | | | | | | | | | | | | | | | | | | According to the comments in the now-removed test 'depcomp5.test' (removed by commit 'v1.11-1829-g5066c1b' of 2012-02-08, "tests: improve and rework tests on dependency tracking") "icc 8.0 and greater understand gcc options, so depmode is set to gcc". According to Wikipedia, the 8.0 version of the Intel C compiler has been released in December 2003, that is, almost nine yeas ago. So we can remove explicit support for icc 7.x from the depcomp script. Since our support for tcc has so far been relied on the icc depmode, we must write a new explicit 'tcc' depmode. That is easy to do, since we can rely on the simpler and better-specified format of tcc-specified makefiles; for more info, see: <http://lists.gnu.org/archive/html/automake/2012-10/msg00043.html> * lib/depcomp (icc): Remove. (tcc): New. * NEWS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: improve comments about tcc supportStefano Lattarini2012-11-241-1/+6
| | | | | | | | * lib/depcomp (icc): Here. See also tcc commit 0394caf7 "Emit spaces for -MD" and automake commit v1.11-768-gb96263 "depcomp: support tcc (Tiny C Compiler)". Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: remove last relics of libtool 1.4 supportStefano Lattarini2012-11-241-16/+8
| | | | | | * lib/depcomp (tru64): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: remove an unused variableStefano Lattarini2012-11-241-1/+0
| | | | | | * lib/depcomp ($alnum): This. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: rewrite a sed invocation for less quotingStefano Lattarini2012-11-241-1/+1
| | | | | | * lib/depcomp (dashmstdout): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: whitespace fixesStefano Lattarini2012-11-241-83/+83
| | | | | | * lib/depcomp: We indent by two spaces, and without using tabs. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: shell code style changesStefano Lattarini2012-11-241-25/+26
| | | | | | * lib/depcomp: Here, in comments and line continuations. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: make some code more self-documentingStefano Lattarini2012-11-241-8/+11
| | | | | | | * lib/depcomp (make_dummy_makefile): With the help of this function. Use it throughout. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: less duplication between AIX and Tru64 modesStefano Lattarini2012-11-241-20/+27
| | | | | | | | * lib/depcomp (tru64, aix): In these entries of the big 'case' switch, with the help of ... (aix_post_process_depfile): ... this new function. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: avoid an extra fork when possibleStefano Lattarini2012-11-241-2/+4
| | | | | | * lib/depcomp (set_dir_from): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: reduce code duplicationStefano Lattarini2012-11-241-12/+24
| | | | | | | | * lib/depcomp: Here, when we have to get the directory and basename components of objects or source files; do so with the help of ... (set_dir_from, set_base_from): ... these new shell functions. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: don't rely on character ranges working as in C localeStefano Lattarini2012-11-241-7/+13
| | | | | | | | * lib/depcomp (pgcc): Here. Related reorganization, with the unconditional definition of ... ($upper, $lower, $digits, $alnum, $alpha): ... these shell variables. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: cosmetic fixlets to a commentStefano Lattarini2012-11-241-2/+2
| | | | | | | | | * lib/depcomp (pgcc): Here, as that's unportable according to the autoconf manual. In fact, there's no need to re-trap the signals just before exiting, since at that point a signal would cause at most a useless but harmless attempt to remove the Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: safer quoting in variable expansionStefano Lattarini2012-11-241-4/+4
| | | | | | | | * lib/depcomp (pgcc): Here. Probably not needed, but since the rest of the script seems to employ proper quoting, better to be consistent. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: correctly propagate exit status in exit trapStefano Lattarini2012-11-241-1/+5
| | | | | | * lib/depcomp (pgcc): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: use "rmdir", not "rm -rf", to remove the empty lock directoryStefano Lattarini2012-11-241-2/+2
| | | | | | * lib/depcomp (pgcc): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: remove useless quoting in variable definitionsStefano Lattarini2012-11-241-2/+2
| | | | | | * lib/depcomp (pgcc): Here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: be more idiomatic in checking for zero exit statusesStefano Lattarini2012-11-241-17/+9
| | | | | | | * lib/depcomp: Prefer "if test $stat -ne 0; then ..." over the longer "if test $stat -eq 0; then :; else ...". Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: avoid potential interferences from the environmentStefano Lattarini2012-10-271-0/+3
| | | | | | | * lib/depcomp (gccflag, dashmflag): By explicitly initializing these variables to the empty string by default. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: improve comments about the 'gcc' depmodeStefano Lattarini2012-10-271-1/+5
| | | | | | | | | | | It is not only needed by obsolescent gcc compilers (pre-3.x), but also by modern compiler like IBM C/C++. State that ... * lib/depcomp: ... here... * gen-testsuite-part: ... and here, where we generate the 'depcomp*.tap' tests. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* cosmetics: fix typo in 'lib/depcomp' commentsPaul Eggert2012-10-141-1/+1
| | | | | | Fixes automake bug#12578. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: style changes to Portland Group Compilers supportStefano Lattarini2012-07-121-19/+18
| | | | | | | | | | * lib/depcomp (pgcc): Quote 'like this', not `like this'. Other minor quoting improvements. Remove a commented-out command. In comments, use proper capitalization and punctuation. Make a more consistent use of whitespace. Make fatal error messages more nicely formatted, and send them to standard error rather than to standard output. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* depcomp: initial support for Portland Group CompilersDave Goodell2012-07-121-1/+75
| | | | | | | | * lib/depcomp: Here. See automake bug#8880. Co-authored-by: Jeff A. Daily <jeff.daily@pnnl.gov> Acked-by: Stefano Lattarini <stefano.lattarini@gmail.com> Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* Merge branch 'maint'Stefano Lattarini2012-03-271-11/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: depcomp: support tcc (Tiny C Compiler) tests: workaround for automatic linker determination and conditionals info: allow user to inhibit pruning of '${infodir}/dir' vala tests: fix spurious failures with older valac (<= 0.7.2) tests: fix a timestamp issue, and other minor buglets tests: fix spurious failure with older autoconf build: remove duplicated entries in $(TESTS) + Extra non-trivia edits: * tests/link_cond.test: Use 'configure.ac', not 'configure.in'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * depcomp: support tcc (Tiny C Compiler)Stefano Lattarini2012-03-271-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes automake bug#11007. Since git commit 0c928da9 of 21-06-2010, "tcc: Draft suppoprt for -MD/-MF options" (sic, with typo in summary line), tcc has supported automatic dependency generation with a command-line interface similar to what old (pre-8.0) Intel compilers did. This caused Automake-generated code for automatic dependency tracking to recognize tcc dependency style as "icc". However, the format of the dependency files generated by tcc is apparently different enough from that of icc to cause spurious failures in the post-processing operated by our 'depcomp' script on such files. The failure was exposed with the development version of tcc 0.9.26 (as installed with debian package "tcc 0.9.26~git20120104.83d") by test case 'depcomp-auto.tap' (available only in the master branch). * lib/depcomp (icc): Cater to tcc as well. Update comments accordingly. * NEWS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | Merge branch 'maint'Stefano Lattarini2012-03-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: tests: avoid spurious failures in get-sysconf.test scripts: bump the depcomp scriptversion sync: some auxiliary files synced from upstream coverage: an empty foo_PRIMARY should create directory $(foodir) coverage: make sure am__py_compile is defined when needed coverage: expose automake bug#10997 coverage: expose automake bug#10975 getopt: relax version requirement for perl + Extra non-trivial edits: * tests/dist-pr109765.test: Use 'configure.ac', not 'configure.in'. * tests/instdir-cond.test: Likewise. * tests/instdir-empty.test: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * scripts: bump the depcomp scriptversionPeter Rosin2012-03-121-1/+1
| | | | | | | | * lib/depcomp (scriptversion): Bump, to account for recent changes.
| * Merge branch 'maint' into msvcStefano Lattarini2012-03-071-0/+13
| |\ | | | | | | | | | | | | | | | * maint: news: describe recently-fixed bug in vala support depcomp: add support for IBM xlc/xlC compilers
* | \ Merge branch 'maint'Stefano Lattarini2012-03-061-0/+13
|\ \ \ | | |/ | |/| | | | | | | | | | * maint: news: describe recently-fixed bug in vala support depcomp: add support for IBM xlc/xlC compilers
| * | depcomp: add support for IBM xlc/xlC compilersMichael Hofmannm2012-03-061-0/+13
| | | | | | | | | | | | | | | | | | | | | * lib/depcomp (xlc): New depmode. * NEWS, THANKS: Update. Copyright-paperwork-exempt: yes
* | | maint: run "make update-copyright"Stefano Lattarini2012-02-161-2/+1
| |/ |/|
* | depcomp: try to prevent whitespace regressionsPeter Rosin2012-02-081-22/+20
| | | | | | | | | | | | | | Suggested by Stefano Lattarini. * lib/depcomp: Add $tab and $nl variables and use them throughout.
* | depcomp: recognize tabs as whitespace in the dashmstdout modePeter Rosin2012-02-081-3/+3
| | | | | | | | | | | | | | | | Commit Release-1-7-2b-2-gf03ceab "Cope with DOS filenames in dependencies." inadvertedly converted tabs into spaces. * lib/depcomp (dashmstdout): Add a tab character to all sets matching whitespace.
* | depcomp: quote 'like this', not `like this'Peter Rosin2012-02-081-20/+20
| | | | | | | | | | | | Cherry-picked from recent changes from master. * lib/depcomp: Quote 'like this', not `like this'.