From: rohit Date: Fri, 23 Mar 2018 20:09:32 +0000 (+0000) Subject: Fixed master branch to have only linux code base and teeing debug logs to log file. X-Git-Tag: ezk-review~13 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=31f2cb5b6da7fbe1d22d2040f7c02828fdaee7f6;p=wrapfs-mgmt.git Fixed master branch to have only linux code base and teeing debug logs to log file. --- diff --git a/wrapfs-fix-branch.sh b/wrapfs-fix-branch.sh index b8e688f..1a8d2ff 100755 --- a/wrapfs-fix-branch.sh +++ b/wrapfs-fix-branch.sh @@ -29,12 +29,12 @@ LINUX_BRANCH="master" LOG_FILE="/tmp/log-${WRAPFS_DIR}" runcmd() { - echo "----------------------------------------------------------------------" - echo "CMD: $@" - $@ + echo "----------------------------------------------------------------------" 2>&1 | tee -a $LOG_FILE + echo "CMD: $@" 2>&1 | tee -a $LOG_FILE + $@ 2>&1 | tee -a $LOG_FILE ret=$? if [ $ret -ne 0 ] ; then - echo "ERROR in running cmd: $@" + echo "ERROR in running cmd: $@" | tee -a $LOG_FILE exit $ret fi } @@ -43,8 +43,6 @@ case "$WRAPFS_DIR" in wrapfs-latest) LINUX_REPO="torvalds/linux.git" LINUX_BRANCH="master" - #echo $LINUX_PREFIX/$LINUX_REPO - #echo $WRAPFS_PREFIX/$WRAPFS_REPO ;; wrapfs-2.* | wrapfs-3.* | wrapfs-4.* ) LINUX_REPO="stable/linux-stable.git" @@ -56,6 +54,7 @@ case "$WRAPFS_DIR" in esac runcmd git config merge.renameLimit 999999 + # check if remote already exists if `git remote | egrep -q ^wrapfs` ; then echo "git remote wrapfs already exists" @@ -74,4 +73,3 @@ runcmd git branch wrapfs -u wrapfs/master runcmd git remote set-url origin $LINUX_PREFIX/$LINUX_REPO runcmd git fetch --tags origin runcmd git reset --hard origin/$LINUX_BRANCH -runcmd git merge wrapfs