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

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

more testing

  • Property svn:executable set to *
File size: 1.9 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# Preprocess popups/about.html so that it is out of date by incrementing
19# a commit index in the file. This will force the SVN revision history
20# variables to be updated on commit making those values reflect the actual
21# version of the repository we're dealing with.
22#
23# This script requires both a bourne compatible shell and a command
24# line PHP processor. see ./lib/svn_commit_preproc.php. You may need
25# to update the path in that script to point to your command line php
26# parser.
27#
28# Currently this only runs under Unix/Linux.
29
30# make sure we're not running from a webserver.
31# FIXME: We need to verify that supported webservers call use the HTTP_HOST
32# FIXME: variable
33
34if test $HTTP_HOST; then
35   echo No
36   exit -1
37fi
38
39# make sure we are running from the xinha root directory
40
41if test ! -f .xinha_root;
42   then
43   echo svn_commit must be run from the Xinha root directory.
44   echo Usage: ./utils/svn_commit.sh
45   exit -1
46   fi
47
48# before we go updating the about.html file make sure that we're out
49# of date
50
51export SVN_EDITOR=vi
52
53if test -z "`svn status`";
54   then
55   echo XINHA is up to date with the Subversion repository
56   exit
57   fi
58
59# update the popups/about.html file.
60
61./utils/lib/svn_commit_preproc.php
62
63# run the commit.
64
65svn commit
Note: See TracBrowser for help on using the repository browser.