-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from palantirnet/fix-installer-dirname-error
Fix shell script installer
- Loading branch information
Showing
5 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
# Wrapper for our install command; at least this way it's somewhat discoverable. | ||
# Previously: | ||
# | ||
# The install command boils down to: | ||
# vendor/bin/phing -f vendor/palantirnet/the-build/targets/install.xml | ||
# | ||
# * This script requires Composer 2.2.2 or greater, because of a series of script proxying | ||
# changes between 2.1.x and 2.2.2. This requirement is enforced in composer.json. | ||
# * This script assumes the composer bin dir is at vendor/bin/ | ||
|
||
# Relative path to this script. | ||
SCRIPT=$(readlink "$0") | ||
|
||
# Absolute path to this script's parent directory. | ||
SCRIPTPATH=$(cd `dirname $0` && cd `dirname $SCRIPT` && pwd) | ||
|
||
REPOPATH=$(cd `dirname $SCRIPTPATH` && cd ../../../ && pwd) | ||
|
||
if [ "$REPOPATH" = `pwd` ]; then | ||
# Run our install task. | ||
$SCRIPTPATH/../../../bin/phing -f $SCRIPTPATH/../targets/install.xml | ||
else | ||
echo "Please run this command from your project root." | ||
# Composer 2.2.2 through 2.2.6 | ||
if [ "$COMPOSER_BIN_DIR" != "" ]; then | ||
COMPOSER_RUNTIME_BIN_DIR="$COMPOSER_BIN_DIR" | ||
fi | ||
|
||
(cd $COMPOSER_RUNTIME_BIN_DIR/../../ && $COMPOSER_RUNTIME_BIN_DIR/phing -f $COMPOSER_RUNTIME_BIN_DIR/../palantirnet/the-build/targets/install.xml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters