~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to libsrc/st/testvms.c

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)testvms.c        19.1 (ES0-DMD) 02/25/03 13:57:24 */
 
2
/*===========================================================================
 
3
  Copyright (C) 1995 European Southern Observatory (ESO)
 
4
 
 
5
  This program is free software; you can redistribute it and/or 
 
6
  modify it under the terms of the GNU General Public License as 
 
7
  published by the Free Software Foundation; either version 2 of 
 
8
  the License, or (at your option) any later version.
 
9
 
 
10
  This program is distributed in the hope that it will be useful,
 
11
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
  GNU General Public License for more details.
 
14
 
 
15
  You should have received a copy of the GNU General Public 
 
16
  License along with this program; if not, write to the Free 
 
17
  Software Foundation, Inc., 675 Massachusetss Ave, Cambridge, 
 
18
  MA 02139, USA.
 
19
 
 
20
  Corresponding concerning ESO-MIDAS should be addressed as follows:
 
21
        Internet e-mail: midas@eso.org
 
22
        Postal address: European Southern Observatory
 
23
                        Data Management Division 
 
24
                        Karl-Schwarzschild-Strasse 2
 
25
                        D 85748 Garching bei Muenchen 
 
26
                        GERMANY
 
27
===========================================================================*/
 
28
 
 
29
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
30
.TYPE        Module
 
31
.NAME        testvms 
 
32
.LANGUAGE    C
 
33
.AUTHOR      IPG-ESO Garching
 
34
.CATEGORY    Preinstallation test for the operating system. 
 
35
.COMMENTS    It writes into a logfile if this is an OPEN_VMS ("ALPHA_VMS")
 
36
             or the old VMS system ("OLD_VMS").
 
37
             The logfile will be checked in the MIDAS preinstallation 
 
38
             ("preinstall.com") to take different actions.
 
39
.VERSION 1.0 93.01.18:  Implementation. C.Guirao
 
40
------------------------------------------------------------*/
 
41
 
 
42
#include <stdio.h>
 
43
main(argc,argv)
 
44
int argc;
 
45
char **argv;
 
46
{
 
47
 
 
48
  if (argc > 1) freopen(argv[1],"w",stdout);
 
49
  else          freopen("test.log","w",stdout);
 
50
 
 
51
#ifdef __alpha
 
52
        printf("ALPHA_VMS\n");
 
53
#else
 
54
        printf("OLD_VMS\n");
 
55
#endif
 
56
}