From 2780ec34b6c67264f77f8ed6fb3fd7edc05d06cf Mon Sep 17 00:00:00 2001 From: lars Date: Fri, 16 Sep 2005 03:33:00 +0000 Subject: [PATCH] validation script fixed (some sed expressions) --- scripts/validate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/validate.sh b/scripts/validate.sh index ff1d3e0..7bbe264 100755 --- a/scripts/validate.sh +++ b/scripts/validate.sh @@ -29,6 +29,7 @@ function do_single() cp "$1/description" "${2}/${TESTNAME}.desc" # sleep, if a file called 'delay' exists [ -e "$1/delay" ] && sleep "$(<$1/delay)" + true } @@ -80,13 +81,13 @@ function import_style() [ -e "$VALIDATE_REPORT_DIR/cryptobox.css" ] && rm "$VALIDATE_REPORT_DIR/cryptobox.css" wget -q -O "$VALIDATE_REPORT_DIR/cryptobox.css" http://$VALIDATE_HOST_IP_DEFAULT/cryptobox.css # extract image file names - grep "url(/cryptobox-img/" "$VALIDATE_REPORT_DIR/cryptobox.css" | sed 's#^.*url(/cryptobox-img/\(.*\)).*$#\1#' | while read a + grep "url(cryptobox-img/" "$VALIDATE_REPORT_DIR/cryptobox.css" | sed 's#^.*url(cryptobox-img/\(.*\)).*$#\1#' | while read a do wget -q -O "$VALIDATE_REPORT_DIR/cryptobox-img/$a" "http://$VALIDATE_HOST_IP_DEFAULT/cryptobox-img/$a" done # change the stylesheet link in every html file in REPORT_DIR find "$VALIDATE_REPORT_DIR" -type f -name \*.html | while read a - do sed -i '#link rel="stylesheet"#s#href="/cryptobox.css"#href="../cryptobox.css"#g' "$a" + do sed -i '/stylesheet/s#href=\"/cryptobox.css\"#href=\"../cryptobox.css\"#g' "$a" done }