Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Git for Mac.

Git for Mac: Difference between revisions

From MoodleDocs
No edit summary
(Redirected page to Git for OS X)
 
Line 1: Line 1:
This GIT installer for Mac OS X is part of the installation package [http://download.moodle.org/macosx/ Moodle4Mac] by Ralf Krause
#REDIRECT [[Git for OS X]]
 
==Code==
 
#! /bin/sh
#
#  This GIT installer for Mac OS X is part
#  of the installation package Moodle4Mac
#
#  20140714 - Ralf Krause
#
echo
echo "+--------------------------------------------+"
echo "| GIT updater for your local Moodle server"
echo "+--------------------------------------------+"
echo
cd /Applications/MAMP/htdocs
if ! test -e moodle27/.git ; then
    ## the first git update must get everything including .git
    git clone --depth 1 -b MOODLE_27_STABLE git://github.com/moodle/moodle.git moodle27-git
    if test -e moodle27 ; then
        if test -e moodle27/config.php ; then
            cp moodle27/config.php moodle27-git/.
        fi
        DATE=`date +%Y%m%d-%H%M`
        mv moodle27 moodle27-$DATE
    fi
    mv moodle27-git moodle27
    ## the old folder can be deleted now
    ## if you want to do this please remove '##' from the following line
    ## sudo rm -R moodle27-*
else
    ## the next git update only gets the new files
    cd moodle27
    git pull
    cd ..
fi
 
 
==See also==
[[Git for Administrators]]
 
[[Category:Installation]]
[[Category:Mac OS X]]
[[es:Git para Mac]]

Latest revision as of 12:38, 21 July 2014

Redirect to: