-
Notifications
You must be signed in to change notification settings - Fork 22
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 #2 from martybel/make_scripts_call_location_indepe…
…ndant Alteration so you can call the scripts from anywhere
- Loading branch information
Showing
4 changed files
with
23 additions
and
18 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,12 +1,14 @@ | ||
#!/bin/bash | ||
|
||
TYPE=${1-'wp-plugin'} | ||
SLUG=$(basename $(dirname $PWD)) | ||
|
||
BASEDIR=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd) | ||
SLUG=$(basename $BASEDIR) | ||
|
||
# These are needed because this itself is a Git repo | ||
export GIT_WORK_TREE=$(dirname $PWD)/git | ||
export GIT_DIR=$(dirname $PWD)/git/.git | ||
export GIT_WORK_TREE=${BASEDIR}/git | ||
export GIT_DIR=${BASEDIR}/git/.git | ||
|
||
git checkout -f master | ||
|
||
php $PWD/wp-develop/tools/i18n/makepot.php $TYPE $GIT_WORK_TREE $GIT_WORK_TREE/languages/$SLUG.pot | ||
php $BASEDIR/wp-deploy/wp-develop/tools/i18n/makepot.php $TYPE $GIT_WORK_TREE $GIT_WORK_TREE/languages/$SLUG.pot |
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