root/branches/mcstas-1.x/setversion

Revision 2058, 1.1 KB (checked in by pkwi, 5 years ago)

From next release, McStas is GPL 2 only.

The debate on the internet about the future GPL 3 suggests that this license might have implications on the 'derived work', hence have implications on what and how our users use their McStas simulations.

  • 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
28cat $1.tmp > $1
29rm -f $1.tmp
Note: See TracBrowser for help on using the browser.