mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 10:07:12 +00:00
update helper scripts and more
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import xml.dom.minidom
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser(description='PECL Package generator')
|
||||
@@ -38,11 +37,7 @@ subprocess.run(['python3', f'{TOOLS_DIR}/prepare_pecl_package_xml.py', '--name',
|
||||
try:
|
||||
with open('package.xml', 'r') as f:
|
||||
package_xml = f.read()
|
||||
doc = xml.dom.minidom.parse('package.xml')
|
||||
doc.encoding = 'UTF-8'
|
||||
xml_str = doc.toprettyxml(indent=' ', newl='')
|
||||
with open('package.xml', 'w') as f:
|
||||
f.write(xml_str)
|
||||
subprocess.run(['tidy', '-xml', '-m', '-i', 'package.xml'], check=True)
|
||||
subprocess.run(['pear', 'package-validate'], check=True)
|
||||
subprocess.run(['pear', 'package'], check=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
||||
Reference in New Issue
Block a user