aboutsummaryrefslogblamecommitdiff
path: root/scripts/common
blob: ab7a9ff6d8445358114774b2c1aea4940c2c21cf (plain) (tree)
1
2
3
4
5
6
7
8
9



                                        
                                                                               
 
       

                                                 
                                                                                                                                                
                  
                                               
                                                                        
      

 
                         
                   
                                                                                                                                       
update() {
  [[ -d $baseDir ]] || mkdir -p $baseDir
  cd $baseDir

  if [ ! -d $baseDir/$3 ]; then git clone "https://github.com/$1/$2.git" $3; fi

  cd $3

  git fetch --tags "https://github.com/$1/$2.git"
  (git fetch "https://github.com/$1/$2.git" $4 && git checkout -fq FETCH_HEAD) #|| git checkout -fq $4 # || fallback is for local testing on tag
  git reset --hard
  echo updated $1/$2:$4 under $3. Last commits:
  git log --pretty=format:"%h - %an, %aD : %s" -n 10 # show last commits
  cd -
}

export LC_ALL=en_US.UTF-8
unset _JAVA_OPTIONS
sbtArgs="-Ddotty.jenkins.build=yes -Dfile.encoding=UTF-8 -ivy $baseDir/ivy2 -Dsbt.global.base=$HOME/.sbt/0.13 -sbt-dir $HOME/.sbt/0.13"