FSL_GIT="ssh://git.fsl.cs.sunysb.edu/scm/git"
KORG_GIT="git://git.kernel.org/pub/scm/linux/kernel/git"
-DEBUG="yes" # set to "no" to turn off debug
+DEBUG="no" # set to "no" to turn off debug
# function to execute commands
runcmd() {
THIS_REPO="$1" # this is how you can "force" a wrapfs-latest clone
# to rebase to a stable kernel say, wrapfs-5.18
fi
-test "$DEBUG" eq "yes" && echo THIS_REPO:$THIS_REPO
+test "$DEBUG" == "yes" && echo THIS_REPO:$THIS_REPO
case "$THIS_REPO" in
2.6.* | 3.* | 4.* | 5.* | latest ) ;;
* ) echo This repo is unknown: $THIS_REPO
# `git remote get-url origin` is the newest syntax but the syntax below
# works on newer and older versions of git
THIS_ORIGIN_URL=`git config --get remote.origin.url 2>/dev/null`
-test "$DEBUG" eq "yes" && echo THIS_ORIGIN_URL=$THIS_ORIGIN_URL
+test "$DEBUG" == "yes" && echo THIS_ORIGIN_URL=$THIS_ORIGIN_URL
# expected origin URL (for FSL git server)
case "$THIS_REPO" in
latest ) EXPECTED_ORIGIN_URL="$FSL_GIT/wrapfs-${THIS_REPO}.git" ;;
* ) EXPECTED_ORIGIN_URL="$FSL_GIT/wrapfs-${THIS_REPO}.y.git" ;;
esac
-test "$DEBUG" eq "yes" && echo EXPECTED_ORIGIN_URL=$EXPECTED_ORIGIN_URL
+test "$DEBUG" == "yes" && echo EXPECTED_ORIGIN_URL=$EXPECTED_ORIGIN_URL
# set new remote URL as needed
if test "$THIS_ORIGIN_URL" != "$EXPECTED_ORIGIN_URL" ; then
# find out the URL for the remote "korg"
THIS_KORG_URL=`git config --get remote.korg.url 2>/dev/null`
-test "$DEBUG" eq "yes" && echo THIS_KORG_URL=$THIS_KORG_URL
+test "$DEBUG" == "yes" && echo THIS_KORG_URL=$THIS_KORG_URL
# expected korg URL
case "$THIS_REPO" in
latest )
KORG_BRANCH="linux-${THIS_REPO}.y"
;;
esac
-test "$DEBUG" eq "yes" && echo EXPECTED_KORG_URL=$EXPECTED_KORG_URL
+test "$DEBUG" == "yes" && echo EXPECTED_KORG_URL=$EXPECTED_KORG_URL
# set new remote URL as needed
if test "$THIS_KORG_URL" != "$EXPECTED_KORG_URL" ; then