mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-19 18:43:10 +00:00
restructure
This commit is contained in:
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/bin/zsh
|
||||
zparseopts -A opts -name: -user: -email: -version: -notes:
|
||||
if [[ $# -lt 10 ]]; then
|
||||
echo "Usage ${0} --name NAME --user USER --email EMAIL --version VERSION --notes NOTES"
|
||||
exit 1
|
||||
fi
|
||||
PACKAGE='awscrt'
|
||||
NAME="${opts[--name]}"
|
||||
USER="${opts[--user]}"
|
||||
EMAIL="${opts[--email]}"
|
||||
VERSION="${opts[--version]}"
|
||||
NOTES="${opts[--notes]}"
|
||||
|
||||
|
||||
BASENAME=${0}
|
||||
TOOLS_DIR=$(dirname ${BASENAME})
|
||||
WORK_DIR="${TOOLS_DIR}/.."
|
||||
|
||||
cd "${WORK_DIR}"
|
||||
|
||||
$TOOLS_DIR/cleanup.sh
|
||||
$TOOLS_DIR/prepare_package_xml.sh --name "${NAME}" --user "${USER}" --email "${EMAIL}" --version "${VERSION}" --notes "${NOTES}" >package.xml
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "ERROR PROCESSING review package.xml"
|
||||
exit 1
|
||||
fi
|
||||
tidy -xml -m -i package.xml
|
||||
pear package-validate
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "ERROR VALIDATING review package.xml"
|
||||
exit 1
|
||||
fi
|
||||
pear package
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "ERROR PROCESSING review package.xml"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Size of ${PACKAGE}-${VERSION}.tgz: " $(du -h "${PACKAGE}-${VERSION}.tgz")
|
||||
Reference in New Issue
Block a user