mirror of https://github.com/axmolengine/axmol.git
Merge pull request #2131 from dumganhar/master
Deleting all files in 'scripting/javascript/bindings/generated' except '.git' and 'README'.
This commit is contained in:
commit
8572dd013b
|
@ -55,6 +55,9 @@ git clean -fdx
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git checkout -B master origin/master
|
git checkout -B master origin/master
|
||||||
|
|
||||||
|
# Delete all directories and files except '.git' and 'README'.
|
||||||
|
ls -a | grep -E -v ^\[.\]\{1,2\}$ | grep -E -v ^\.git$ | grep -E -v ^README$ | xargs -I{} rm -rf {}
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Exit on error
|
# Exit on error
|
||||||
|
@ -131,7 +134,8 @@ set -e
|
||||||
|
|
||||||
# 3. In JSBindings repo, Check out a branch named "autogeneratedbindings" and commit the auto generated bindings to it
|
# 3. In JSBindings repo, Check out a branch named "autogeneratedbindings" and commit the auto generated bindings to it
|
||||||
git checkout -b "$GENERATED_BRANCH"
|
git checkout -b "$GENERATED_BRANCH"
|
||||||
git add --verbose README cocos2dx.cpp cocos2dx.hpp cocos2dxapi.js
|
git add --verbose .
|
||||||
|
git add --verbose -u .
|
||||||
git commit --verbose -m "$COMMITTAG : autogenerated bindings"
|
git commit --verbose -m "$COMMITTAG : autogenerated bindings"
|
||||||
|
|
||||||
# 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository
|
# 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository
|
||||||
|
|
Loading…
Reference in New Issue