Code Search for Developers
 
 
  

sync.sh from SME Web Application Framework at Krugle


Show sync.sh syntax highlighted

#!/bin/bash
### syncronize a book with cvs

### go to this dir
cd $(dirname $0)

if [ "$1" = "" ]
then
  echo "Usage: $0 book-id [lng]"
  echo "where lng is: en, de, fr, it, al, etc. (default is en)"
  exit 1;
fi

book_id=$1
lng=${2:-en}

# read the name of the svn sandbox from svn_dir.txt
. svn_dir.txt

xml_file=$svn_dir/${book_id}_${lng}.xml

### implode the book with any latest changes
../implode/implode.sh $book_id $lng
cp ../implode/tmp/$book_id.xml $xml_file

### syncronize with the svn repository
echo "Updating  '$xml_file'"
svn update $xml_file
echo "Commiting '$xml_file'"
svn commit $xml_file -m "$(hostname -i):$(pwd)"

### explode and refresh the cache
./update.sh $book_id $lng




See more files for this project here

SME Web Application Framework

smewebapp intends to simplify the construction of web applications for informatization of the work of SME-s (small and medium enterprises), institutions, organizations etc.

Project homepage: http://sourceforge.net/projects/smewebapp
Programming language(s): JavaScript,PHP,Shell Script,XML
License: other

  README
  book_list.sh
  commit-email.pl
  commit.sh
  commit_all.sh
  get_url.sh
  init.sh
  post-commit.tmpl
  sync.sh
  sync_all.sh
  txt_diff.sh
  update.sh
  update_all.sh