From db943ddb901165d454dbf12195920e2555427675 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sun, 10 Mar 2013 16:10:16 +0800 Subject: [PATCH] Deleting all files in 'scripting/javascript/bindings/generated' except '.git' and 'README'. --- .../jenkins_scripts/mac/android/generate-js-cxx-bindings.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh b/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh index 261091b70b..e719e0ed3f 100755 --- a/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh +++ b/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh @@ -55,6 +55,9 @@ git clean -fdx git fetch origin 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 # 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 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" # 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository