Git for OS X
This GIT installer for Mac OS X is part of the installation package LMS4Mac by Ralf Krause
Code
#! /bin/sh # # This GIT installer for Mac OS X is part # of the installation package LMS4Mac # # 20140714 - Ralf Krause # echo echo "+--------------------------------------------+" echo "| GIT updater for your local LMS server" echo "+--------------------------------------------+" echo cd /Applications/MAMP/htdocs if ! test -e lms27/.git ; then ## the first git update must get everything including .git git clone --depth 1 -b LMS_27_STABLE git://github.com/lms/lms.git lms27-git if test -e lms27 ; then if test -e lms27/config.php ; then cp lms27/config.php lms27-git/. fi DATE=`date +%Y%m%d-%H%M` mv lms27 lms27-$DATE fi mv lms27-git lms27 ## the old folder can be deleted now ## if you want to do this please remove '##' from the following line ## sudo rm -R lms27-* else ## the next git update only gets the new files cd lms27 git pull cd .. fi
See also
- Installation
- Mac OS X