From: Andy Dougherty Date: Thu, 13 Mar 2014 19:44:19 +0000 (-0400) Subject: Split file into parts with and without substitutions. X-Git-Tag: upstream/5.20.0~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1397316ff9824d76d2953cfd3cef2bef5be92ee;p=platform%2Fupstream%2Fperl.git Split file into parts with and without substitutions. At this point, there are no functional changes. This just prepares the way for future work. --- diff --git a/runtests.SH b/runtests.SH index 304b719..481a237 100755 --- a/runtests.SH +++ b/runtests.SH @@ -16,21 +16,26 @@ case "$0" in esac echo "Extracting runtests (with variable substitutions)" rm -f runtests + $spitshell >runtests <>runtests <<'!NO!SUBS!' -case \$# in +export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh $0; kill $$) + +case $# in 0) echo "runtests tty_flag ..." exit 1 ;; esac -case \$1 in +case $1 in tty) tty=Y ;; @@ -50,12 +55,16 @@ case \$1 in ;; esac -if test X"\$TESTFILE" = X; then +if test X"$TESTFILE" = X; then TESTFILE=TEST fi cd t +!NO!SUBS! + +## In the following, dollars and backticks do need the extra backslash. +$spitshell >>runtests <