]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Don't use a shell feature not present in older shells.
authorGuy Harris <[email protected]>
Sun, 18 Aug 2019 22:48:15 +0000 (15:48 -0700)
committerGuy Harris <[email protected]>
Sun, 18 Aug 2019 22:48:15 +0000 (15:48 -0700)
Older shells, such as /bin/sh in Solaris 10, don't support command
substitution with the $(command) syntax, but do support it with the
`command` syntax.  Use the latter.

Makefile.in

index eb5faba6be63e770a17fb7df025c76134bbe363c..6f4c166f4818fd3552e4e45c7fec8bff39962643 100644 (file)
@@ -443,7 +443,7 @@ distclean:
        rm -rf autom4te.cache tests/DIFF tests/NEW
 
 check: tcpdump
-       (mkdir -p tests && export SRCDIR=$$(cd ${srcdir}; pwd) && $${SRCDIR}/tests/TESTrun.sh )
+       (mkdir -p tests && export SRCDIR=`cd ${srcdir}; pwd` && $${SRCDIR}/tests/TESTrun.sh )
 
 extags: $(TAGFILES)
        ctags $(TAGFILES)