「Git for OS X」の版間の差分

提供:MoodleDocs
移動先:案内検索
(ページの作成:「This GIT installer for Mac OS X is part of the installation package [http://download.moodle.org/macosx/ Moodle4Mac] by Ralf Krause 作成中です - ~~~ ==Code== #! /…」)
 
編集の要約なし
1行目: 1行目:
This GIT installer for Mac OS X is part of the installation package [http://download.moodle.org/macosx/ Moodle4Mac] by Ralf Krause
This GIT installer for Mac OS X is part of the installation package [http://download.moodle.org/macosx/ Moodle4Mac] by Ralf Krause
このMac OS X用GITインストーラはRalf Krause氏による[http://download.moodle.org/macosx/ Moodle4Mac]インストールパッケージの一部です。


作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] ([[利用者・トーク:Mitsuhiro Yoshida|トーク]])
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] ([[利用者・トーク:Mitsuhiro Yoshida|トーク]])


==Code==
==コード==


  #! /bin/sh
  #! /bin/sh
43行目: 44行目:




==See also==
==関連情報==
[[Git for Administrators]]
[[管理者用Git]]


[[Category:Installation]]
[[Category:インスト―レーション]]
[[Category:Mac OS X]]
[[Category:Mac OS X]]
[[en:Git for OS X]]
[[en:Git for OS X]]
[[es:Git para Mac]]
[[es:Git para Mac]]

2022年10月10日 (月) 15:04時点における版

This GIT installer for Mac OS X is part of the installation package Moodle4Mac by Ralf Krause このMac OS X用GITインストーラはRalf Krause氏によるMoodle4Macインストールパッケージの一部です。

作成中です - Mitsuhiro Yoshida (トーク)

コード

#! /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


関連情報

管理者用Git