fix remotes for final wrapfs locations
authorezk <ezk>
Mon, 4 Feb 2019 23:03:33 +0000 (23:03 +0000)
committerezk <ezk>
Mon, 4 Feb 2019 23:03:33 +0000 (23:03 +0000)
fix-remotes.sh

index 72d6c45879d6eddcc5de26bcc130fa154b5edf0a..7eb7bb93acc069e79b36dd26871fc734280aa060 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # fix/conform all remotes/URLs for wrapfs GIT repos
 
-FSL_GIT="ssh://git.fsl.cs.sunysb.edu/scm/git/ROHIT"
+FSL_GIT="ssh://git.fsl.cs.sunysb.edu/scm/git"
 KORG_GIT="git://git.kernel.org/pub/scm/linux/kernel/git"
 
 # function to execute commands
@@ -27,7 +27,7 @@ fi
 
 # find out what repo I'm supposed to be (allow override from cmd-line)
 if test -z "$1"; then
-    THIS_REPO=`basename $PWD | sed -e 's/^wrapfs-//'`
+    THIS_REPO=`basename $PWD | sed -e 's/^wrapfs-//' -e 's/\.y$//'`
 else
     THIS_REPO="$1"
 fi
@@ -36,7 +36,7 @@ case "$THIS_REPO" in
     2.6.* | 3.* | 4.* | 5.* | latest ) ;;
     * ) echo This repo is unknown: $THIS_REPO
        exit 1
-       ;; 
+       ;;
 esac
 
 # verify we have both master and wrapfs branches