File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # This script updates the version in the client code. It does not need to do anything else to release
3+ # a new version, because Packagist will pick up the new version automatically by watching our public
4+ # repository.
5+
6+ # It takes exactly one argument: the new version.
7+ # It should be run from the root of this git repo like this:
8+ # ./scripts/release.sh 4.0.9
9+
10+ # When done you should commit and push the changes made.
11+
12+ set -uxe
13+ echo " Starting php-client release (version update only)"
14+
15+ VERSION=$1
16+
17+ echo $VERSION > ./VERSION
18+
19+ # Update version in LDClient class
20+ LDCLIENT_PHP=src/LaunchDarkly/LDClient.php
21+ LDCLIENT_PHP_TEMP=./LDClient.php.tmp
22+ sed " s/const VERSION = '.*'/const VERSION = '${VERSION} '/g" $LDCLIENT_PHP > $LDCLIENT_PHP_TEMP
23+ mv $LDCLIENT_PHP_TEMP $LDCLIENT_PHP
24+
25+ echo " Done with php-client release (version update only)"
You can’t perform that action at this time.
0 commit comments