diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-09-07 20:01:07 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-09-07 20:01:07 +0000 |
commit | 13a3dd5a1c0d4801f76e202b8dbbf843f0530b8b (patch) | |
tree | 94eaa1a8acccdbebc4bccd8dd97247551b135cd0 /docbook/check_svn_version.sh | |
parent | c704e3414f5fd5e1cc8c1a403f94c2417728b246 (diff) | |
download | wireshark-13a3dd5a1c0d4801f76e202b8dbbf843f0530b8b.tar.gz wireshark-13a3dd5a1c0d4801f76e202b8dbbf843f0530b8b.tar.bz2 wireshark-13a3dd5a1c0d4801f76e202b8dbbf843f0530b8b.zip |
fix bug #842: "make" now won't try to rebuild again if nothing changed since the last make call.
Other minor dependency fixes.
I didn't found a way to implement the SVN version check using make, so using a new shell script instead ...
svn path=/trunk/; revision=19173
Diffstat (limited to 'docbook/check_svn_version.sh')
-rw-r--r-- | docbook/check_svn_version.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/docbook/check_svn_version.sh b/docbook/check_svn_version.sh new file mode 100644 index 0000000000..1c7648e4ea --- /dev/null +++ b/docbook/check_svn_version.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Check for SVN version +# +# $Id$ +# +# Wireshark - Network traffic analyzer +# By Gerald Combs <gerald@wireshark.org> +# Copyright 2005 Ulf Lamping +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# + +echo -n '<!ENTITY SvnVersion "' > svn_version_tmp.xml +svnversion -n . >> svn_version_tmp.xml +echo '">' >> svn_version_tmp.xml + +# /dev/null buries the output of the "cmp" command. +diff svn_version.xml svn_version_tmp.xml &> /dev/null + +if [ $? -ne 0 ] +then + cp svn_version_tmp.xml svn_version.xml +fi + +rm svn_version_tmp.xml |