diff --git a/run.sh b/run.sh index 076964f9..718177a3 100644 --- a/run.sh +++ b/run.sh @@ -22,42 +22,6 @@ sed -i "s|{{CheckTime}}|$DATE|g" tmp/chrome.xml ./util/generator.sh stable-x86 stable-x64 beta-x86 beta-x64 dev-x86 dev-x64 canary-x86 canary-x64 -# Function to format XML -format_xml() { - local input=$1 - local output=$2 - - # Read input file and process it - sed ' - # Add newline after elements that end with > - s/>/>\n/g - # Remove empty lines - /^[[:space:]]*$/d - ' "$input" | awk ' - # Initialize indent level - BEGIN { indent = 0 } - - # Processing each line - { - # Remove leading/trailing whitespace - gsub(/^[ \t]+|[ \t]+$/, "") - - # Decrease indent for closing tags - if (match($0, "^$")) { - indent += 2 - } - } - ' > "$output" -} - # Function to minify XML minify_xml() { local input=$1 @@ -77,7 +41,7 @@ minify_xml() { } # Format XML -format_xml "tmp/chrome.xml" "tmp/api/chrome.xml" +cp "tmp/chrome.xml" "tmp/api/chrome.xml" # Minify XML minify_xml "tmp/chrome.xml" "tmp/api/chrome.min.xml"