• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision3842 (tree)
Time2018-07-16 12:51:00
Authormagicant

Log Message

configure: Test ctags with correct operands

Exuberant Ctags 5.8 fails with the '-f /dev/null' option. Use regular
files for more stable test results.

Change Summary

Incremental Difference

--- yash/trunk/configure (revision 3841)
+++ yash/trunk/configure (revision 3842)
@@ -30,7 +30,7 @@
3030
3131 target="yash"
3232 version="2.47"
33-copyright="Copyright (C) 2007-2017 magicant"
33+copyright="Copyright (C) 2007-2018 magicant"
3434
3535 # object files to be linked as `yash'
3636 objs='$(MAIN_OBJS)'
@@ -1570,7 +1570,9 @@
15701570 if [ x"${CTAGSARGS+set}" != x"set" ]
15711571 then
15721572 checking "if ctags accepts --recurse option"
1573- checkby ${ctags} --recurse -f /dev/null /dev/null
1573+ rm -fr "${temptxt}"
1574+ printf 'int f(int){}\n' >|"${tempsrc}"
1575+ checkby ${ctags} --recurse -f "${temptxt}" "${tempsrc}"
15741576 checked
15751577 if [ x"${checkresult}" = x"yes" ]
15761578 then
@@ -1582,7 +1584,9 @@
15821584 if [ x"${ETAGSARGS+set}" != x"set" ]
15831585 then
15841586 checking "if etags accepts --recurse option"
1585- checkby ${etags} --recurse -o /dev/null /dev/null >/dev/null 2>&1
1587+ rm -fr "${temptxt}"
1588+ printf 'int f(int){}\n' >|"${tempsrc}"
1589+ checkby ${etags} --recurse -o "${temptxt}" "${tempsrc}"
15861590 checked
15871591 if [ x"${checkresult}" = x"yes" ]
15881592 then
Show on old repository browser