root/lang/gauche/oldtype/trunk/bin/batch.sh @ 16032

Revision 16032, 0.9 kB (checked in by kiyoka, 5 years ago)

Fixed bug: convert illegal .sexp file.

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3
4if [ "$OT_HOME" = "" ] ; then
5  echo "Please environment variables OT_HOME"
6  exit 1
7fi
8
9# setup load-path
10export GAUCHE_LOAD_PATH="$OT_HOME/Kahua/oldtype"
11
12# load configuration
13. ${OT_HOME}/config.sh
14
15if [ "$OT_SITE" = "" ] ; then
16  echo "Please environment variables OT_SITE"
17  exit 1
18fi
19
20if [ "$OT_USER_BACKEND" = "" ] ; then
21  echo "Please environment variables OT_USER_BACKEND"
22  exit 1
23fi
24
25if [ "$OT_USER_LOCAL" = "" ] ; then
26  echo "Please environment variables OT_USER_LOCAL"
27  exit 1
28fi
29
30function task () {
31  echo [[info]] task start
32  ${OT_HOME}/bin/update.sh &&
33  ${OT_HOME}/bin/ot_AllPages &&
34  ${OT_HOME}/bin/ot_RecentChanges &&
35  ${OT_HOME}/command/blog &&
36  ${OT_HOME}/bin/add.sh &&
37  ${OT_HOME}/bin/commit.sh &&
38  ${OT_HOME}/bin/update.sh &&
39  ${OT_HOME}/bin/convert.sh
40  #run-parts ${OT_HOME}/hook
41  echo -n [[info]] sleep...
42  sleep 2
43  echo wakeup
44}
45
46while :
47do
48  task
49done
50
51
Note: See TracBrowser for help on using the browser.