source: branches/unified_backend/utils/svn_commit.sh @ 66

Last change on this file since 66 was 66, checked in by yermol, 15 years ago

test commit using front end script to make current version number appear
in the about box.

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/sh
2
3# -----------------------------------------------------------------
4# Copyright (C) DTLink, LLC.
5# http://www.dtlink.com and http://www.formvista.com
6#
7# Use of this code is granted by the terms of the htmlArea License (based on
8# BSD license) please read license.txt in this package for details.
9#
10# All software distributed under the Licenses is provided strictly on
11# an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
12# IMPLIED, AND DTLINK LLC HEREBY DISCLAIMS ALL SUCH
13# WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
14# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT,
15# OR NON-INFRINGEMENT.
16# ------------------------------------------------------------------
17#
18# This script requires both a bourne compatible shell and a command
19# line PHP processor. see ./lib/svn_commit_preproc.php. You may need
20# to update the path in that script to point to your command line php
21# parser.
22#
23# Preprocess popups/about.html so that it reflects the actual version
24# we're dealing with intead of just the version of the about.html file.
25
26# make sure we're not running from a webserver.
27# FIXME: We need to verify that supported webservers call use the HTTP_HOST
28# FIXME: variable
29
30if test $HTTP_HOST; then
31   echo No
32   exit -1
33fi
34
35# make sure we are running from the xinha root directory
36
37if test ! -f .xinha_root;
38   then
39   echo svn_commit must be run from the Xinha root directory.
40   exit -1
41   fi
42
43# before we go updating the about.html file make sure that we're out
44# of date
45
46export SVN_EDITOR=vi
47
48if test -z "`svn status`";
49   then
50   echo XINHA is up to date with the Subversion repository
51   exit
52   fi
53
54./utils/lib/svn_commit_preproc.php
55
56svn commit
Note: See TracBrowser for help on using the repository browser.