root/trunk/setversion

Revision 2693, 1.2 KB (checked in by farhi, 2 years ago)

Now use common configure, with automatic naming of PACKAGE and target=mcstas or mcxtrace.
Whole stuff is set when running mkdist and then configure...

  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3# Wrapper for sed to replace version numbering in mcstas components, etc.
4#
5# PW, risoe, Jan. 2003
6#
7#   This file is part of the McStas neutron ray-trace simulation package
8#   Copyright (C) 1997-2004, All rights reserved
9#   Risoe National Laborartory, Roskilde, Denmark
10#   Institut Laue Langevin, Grenoble, France
11#
12#   This program is free software; you can redistribute it and/or modify
13#   it under the terms of the GNU General Public License as published by
14#   the Free Software Foundation; version 2 of the License.
15#
16#   This program is distributed in the hope that it will be useful,
17#   but WITHOUT ANY WARRANTY; without even the implied warranty of
18#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19#   GNU General Public License for more details.
20#
21#   You should have received a copy of the GNU General Public License
22#   along with this program; if not, write to the Free Software
23#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
25
26
27sed 's/McStas [0-9]\.[0-9.]\+/McStas '$2'/' $1 > $1.tmp
28sed 's/Release: McStas ....\+/Release: McStas '$2'/' $1.tmp > $1
29sed 's/McXtrace [0-9]\.[0-9.]\+/McXtrace '$2'/' $1 > $1.tmp
30sed 's/Release: McXtrace ....\+/Release: McXtrace '$2'/' $1.tmp > $1
31rm -f $1.tmp
Note: See TracBrowser for help on using the browser.