From 7193cbf1199ce7bb193d06e71b234c645a631da1 Mon Sep 17 00:00:00 2001 From: zhouyingfeng Date: Wed, 28 Dec 2016 22:12:30 +0800 Subject: [PATCH] rename "feedback.sh" into "usage.sh", and fix the code style error in this file. --- paddle/scripts/CMakeLists.txt | 8 ++++---- paddle/scripts/submit_local.sh.in | 2 +- paddle/scripts/tools/usage_stat/{feedback.sh => usage.sh} | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) rename paddle/scripts/tools/usage_stat/{feedback.sh => usage.sh} (99%) diff --git a/paddle/scripts/CMakeLists.txt b/paddle/scripts/CMakeLists.txt index e29faab5e8f..66a46e1883a 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 e95b6dbea17..f29d32f0d94 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 76f7d44a556..7dbd1f58842 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 - - - - -- GitLab