Remove scripts/command/change_gitmodule.sh (#2713)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 17 Sep 2018 06:36:14 +0000 (15:36 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 17 Sep 2018 06:36:14 +0000 (15:36 +0900)
This patch removes scripts/command/change_gitmodule.sh, since it is no
longer used, and updates its caller sites.

Same reason with #1085

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
scripts/command/change_gitmodule.sh [deleted file]
scripts/command/docker_build_cross_arm_neurun.sh
scripts/command/docker_build_cross_arm_ubuntu.sh
scripts/command/docker_build_cross_arm_ubuntu_without_aclbuild.sh
scripts/command/docker_build_tizen_cross.sh
scripts/command/docker_build_ubuntu_coverity.sh
scripts/command/docker_build_ubuntu_svace.sh
scripts/command/docker_cross_test_coverage_build.sh
scripts/command/docker_run_test.sh

diff --git a/scripts/command/change_gitmodule.sh b/scripts/command/change_gitmodule.sh
deleted file mode 100755 (executable)
index 8e16ac8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-# Background for this hack
-#
-# To fetch submodule repositories from github.sec.samsung.net, we must
-# authenticate the user, who is fetching the source tree, regardless of
-# communication protocol (e.g., ssh, https).  Note that the policy of Samsung's
-# internal github does not allow to access the repository without
-# authentication.  Because of this, the replacement below is a workaround to
-# pass the login information of our CI account, git-bot-sec, using an API token.
-# Since the URL in .gitmodules is written with `git@` that requires ssh key
-# authentication and we don't really want to put git-bot-sec's ssh private key
-# somewhere, we decided to use a token-based authentication method.
-
-SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-HOST_HOME=$SCRIPT_ROOT/../..
-
-USERNAME=git-bot-sec
-TOKEN=acb137d756874f7c7746a95e31ebb3994f1c4505
-
-sed -i "s/git@github.sec.samsung.net:/https:\/\/$USERNAME:$TOKEN@github.sec.samsung.net\//" $HOST_HOME/.gitmodules
index 62798e4..4e1022a 100755 (executable)
@@ -27,10 +27,6 @@ DOCKER_VOLUMES+=" -v $ROOTFS_DIR/:/opt/rootfs"
 
 CMD="export OPTIONS=\" -DBUILD_NEURUN=ON -DBUILD_NN_RUNTIME=OFF \" && make acl && make && make install && make build_test_suite"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD"
 BUILD_RESULT=$?
 
index 1b966e9..5da2bd6 100755 (executable)
@@ -28,10 +28,6 @@ fi
 
 DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 if [ -n "$DOCKER_INTERACTIVE" ]; then
   DOCKER_RUN_OPTS+=" -it"
   CMD="/bin/bash"
index 1269bfe..b75be17 100755 (executable)
@@ -32,10 +32,6 @@ fi
 DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
 DOCKER_VOLUMES+=" -v $ARMCL_DIR:/opt/libarmcl"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 if [ -n "$DOCKER_INTERACTIVE" ]; then
   DOCKER_RUN_OPTS+=" -it"
   CMD="/bin/bash"
index 7165e93..3a45cfd 100755 (executable)
@@ -27,10 +27,6 @@ DOCKER_VOLUMES+=" -v $ROOTFS_DIR/:/opt/rootfs"
 
 CMD="make && make install && make build_test_suite"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD"
 BUILD_RESULT=$?
 
index 2dd8d8d..4553032 100755 (executable)
@@ -42,10 +42,6 @@ DOCKER_VOLUMES+=" -v $COVERITY_ANALYZER_DIR:/opt/cov-analyzer"
 DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
 DOCKER_VOLUMES+=" -v $COVERITY_OUT:/opt/cov-out"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 if [ -n "$DOCKER_INTERACTIVE" ]; then
   DOCKER_RUN_OPTS+=" -it"
   CMD="/bin/bash"
index e1883ca..49f1ee3 100755 (executable)
@@ -47,10 +47,6 @@ fi
 DOCKER_VOLUMES+=" -v $SVACE_ANALYZER_DIR:/opt/svace-analyzer"
 DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 if [ -n "$DOCKER_INTERACTIVE" ]; then
   DOCKER_RUN_OPTS+=" -it"
   CMD="/bin/bash"
index d6df3dd..784b846 100755 (executable)
@@ -25,10 +25,6 @@ fi
 
 DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs"
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE"
-
 if [ -n "$DOCKER_INTERACTIVE" ]; then
   DOCKER_RUN_OPTS+=" -it"
   CMD="/bin/bash"
index a30e8cc..f6605b1 100755 (executable)
@@ -20,10 +20,6 @@ if [ "$DOCKER_INTERACTIVE" ]; then
     CMD="/bin/bash"
 fi
 
-# Change .gitmodules to work around the permission issue
-CMD_SUBMODULE="./scripts/command/change_gitmodule.sh"
-docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD_SUBMODULE
-
 docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD
 
 BUILD_RESULT=$?