Skip to content

Commit

Permalink
manifest gen for ext-(apcu|mongo|oauth|redis)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed Dec 10, 2015
1 parent 0cd13de commit 28b206f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 12 deletions.
9 changes: 7 additions & 2 deletions support/build/extensions/no-debug-non-zts-20121212/apcu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.5.11
# Build Deps: php-5.5.30

OUT_PREFIX=$1

Expand All @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz

pushd ${dep_dirname}
export PATH=${OUT_PREFIX}/bin:${PATH}
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest
phpize
./configure \
--prefix=${OUT_PREFIX} \
Expand All @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/*
make install -s
popd

echo "-----> Done."
package=${0#$WORKSPACE_DIR/}

PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-apcu" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json

echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest."
9 changes: 7 additions & 2 deletions support/build/extensions/no-debug-non-zts-20121212/mongo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.5.21
# Build Deps: php-5.5.30

OUT_PREFIX=$1

Expand All @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz

pushd ${dep_dirname}
export PATH=${OUT_PREFIX}/bin:${PATH}
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest
phpize
./configure \
--prefix=${OUT_PREFIX} \
Expand All @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/*
make install -s
popd

echo "-----> Done."
package=${0#$WORKSPACE_DIR/}

PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-mongo" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json

echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest."
9 changes: 7 additions & 2 deletions support/build/extensions/no-debug-non-zts-20121212/oauth
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.5.11
# Build Deps: php-5.5.30

OUT_PREFIX=$1

Expand All @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz

pushd ${dep_dirname}
export PATH=${OUT_PREFIX}/bin:${PATH}
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest
phpize
./configure \
--prefix=${OUT_PREFIX} \
Expand All @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/*
make install -s
popd

echo "-----> Done."
package=${0#$WORKSPACE_DIR/}

PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-oauth" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json

echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest."
9 changes: 7 additions & 2 deletions support/build/extensions/no-debug-non-zts-20121212/redis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.5.22
# Build Deps: php-5.5.30

OUT_PREFIX=$1

Expand All @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz

pushd ${dep_dirname}
export PATH=${OUT_PREFIX}/bin:${PATH}
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest
phpize
./configure \
--prefix=${OUT_PREFIX} \
Expand All @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/*
make install -s
popd

echo "-----> Done."
package=${0#$WORKSPACE_DIR/}

PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-redis" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json

echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest."
2 changes: 1 addition & 1 deletion support/build/extensions/no-debug-non-zts-20131226/apcu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.6.0RC4
# Build Deps: php-5.6.16

source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0)
2 changes: 1 addition & 1 deletion support/build/extensions/no-debug-non-zts-20131226/mongo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.6.5
# Build Deps: php-5.6.16

source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0)
2 changes: 1 addition & 1 deletion support/build/extensions/no-debug-non-zts-20131226/oauth
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.6.4
# Build Deps: php-5.6.16

source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0)
2 changes: 1 addition & 1 deletion support/build/extensions/no-debug-non-zts-20131226/redis
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/php/
# Build Deps: php-5.6.6
# Build Deps: php-5.6.16

source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0)

0 comments on commit 28b206f

Please sign in to comment.