Ignore:
Timestamp:
Jun 30, 2009, 12:14:37 AM (15 years ago)
Author:
ezyang
Message:
Convert MediaWiki to use Git to setup the working directory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/locker/deploy/bin/onathena

    r1045 r1213  
    236236
    237237# xavid: use p to keep the same permissions as in the file
    238 athrun scripts gtar zxpf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"
    239 files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`
    240 numfiles=`echo "$files" | wc -l`
    241 if [ ! -z "$files" ]; then
    242     if [ "$numfiles" -eq 1 ]; then
    243         athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -i mv \{} .
    244         rmdir "$files"
    245     fi
     238if [ "$deploy" = "mediawiki" ]; then
     239  admin=`cat .admin`
     240  rm .admin
     241  git clone --shared "/mit/scripts/wizard$scriptsdev/srv/$deploy.git" .
     242  echo "$admin" > .admin
     243else
     244  athrun scripts gtar zxpf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"
     245  files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`
     246  numfiles=`echo "$files" | wc -l`
     247  if [ ! -z "$files" ]; then
     248      if [ "$numfiles" -eq 1 ]; then
     249          athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -i mv \{} .
     250          rmdir "$files"
     251      fi
     252  fi
    246253fi
    247254if [ -f "/mit/scripts/deploy$scriptsdev/php.ini/$deploy" ]; then
Note: See TracChangeset for help on using the changeset viewer.