diff --git a/paddle/scripts/CMakeLists.txt b/paddle/scripts/CMakeLists.txt index e29faab5e8fd8c690f23da21bdd4ac290f281689..66a46e1883a49d491f0cb3056a7039407d72e337 100644 --- a/paddle/scripts/CMakeLists.txt +++ b/paddle/scripts/CMakeLists.txt @@ -7,11 +7,11 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/submit_local.sh DESTINATION bin GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ RENAME paddle) -configure_file(tools/usage_stat/feedback.sh - feedback.sh +configure_file(tools/usage_stat/usage.sh + usage.sh @ONLY) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/feedback.sh DESTINATION opt/paddle/bin +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/usage.sh DESTINATION opt/paddle/bin PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ - RENAME paddle_feedback) + RENAME paddle_usage) diff --git a/paddle/scripts/submit_local.sh.in b/paddle/scripts/submit_local.sh.in index e95b6dbea17b0472846236d98ff6b84f9a04d08d..f29d32f0d947dc7cde6112160e4f79ce8113505f 100644 --- a/paddle/scripts/submit_local.sh.in +++ b/paddle/scripts/submit_local.sh.in @@ -123,7 +123,7 @@ case "$1" in python -m paddle.utils.make_model_diagram ${@:2} ;; "usage") - $MYDIR/../opt/paddle/bin/paddle_feedback ${@:2} + $MYDIR/../opt/paddle/bin/paddle_usage ${@:2} ;; "version") version diff --git a/paddle/scripts/tools/usage_stat/feedback.sh b/paddle/scripts/tools/usage_stat/usage.sh similarity index 99% rename from paddle/scripts/tools/usage_stat/feedback.sh rename to paddle/scripts/tools/usage_stat/usage.sh index 76f7d44a5561e393283c8df10ee66d34ff7fa8ec..7dbd1f58842f50ea1df0e2476c4a493569b1dda9 100755 --- a/paddle/scripts/tools/usage_stat/feedback.sh +++ b/paddle/scripts/tools/usage_stat/usage.sh @@ -166,7 +166,3 @@ else if [ "${v}" = "1" ]; then echo "all urls tried but all failed...exit"; fi exit 1 fi - - - -