xref: /minix3/external/bsd/pkg_install/dist/lib/version.c (revision a824f5a1008ee67499d167f8c48e64aae26960ca)
1*a824f5a1SJean-Baptiste Boric /*	$NetBSD: version.c,v 1.1.1.3 2010/02/03 14:24:00 joerg Exp $	*/
2*a824f5a1SJean-Baptiste Boric 
3*a824f5a1SJean-Baptiste Boric #if HAVE_CONFIG_H
4*a824f5a1SJean-Baptiste Boric #include "config.h"
5*a824f5a1SJean-Baptiste Boric #endif
6*a824f5a1SJean-Baptiste Boric #include <nbcompat.h>
7*a824f5a1SJean-Baptiste Boric #if HAVE_SYS_CDEFS_H
8*a824f5a1SJean-Baptiste Boric #include <sys/cdefs.h>
9*a824f5a1SJean-Baptiste Boric #endif
10*a824f5a1SJean-Baptiste Boric __RCSID("$NetBSD: version.c,v 1.1.1.3 2010/02/03 14:24:00 joerg Exp $");
11*a824f5a1SJean-Baptiste Boric 
12*a824f5a1SJean-Baptiste Boric /*
13*a824f5a1SJean-Baptiste Boric  * Copyright (c) 2001 Thomas Klausner.  All rights reserved.
14*a824f5a1SJean-Baptiste Boric  *
15*a824f5a1SJean-Baptiste Boric  * Redistribution and use in source and binary forms, with or without
16*a824f5a1SJean-Baptiste Boric  * modification, are permitted provided that the following conditions
17*a824f5a1SJean-Baptiste Boric  * are met:
18*a824f5a1SJean-Baptiste Boric  * 1. Redistributions of source code must retain the above copyright
19*a824f5a1SJean-Baptiste Boric  *    notice, this list of conditions and the following disclaimer.
20*a824f5a1SJean-Baptiste Boric  * 2. Redistributions in binary form must reproduce the above copyright
21*a824f5a1SJean-Baptiste Boric  *    notice, this list of conditions and the following disclaimer in the
22*a824f5a1SJean-Baptiste Boric  *    documentation and/or other materials provided with the distribution.
23*a824f5a1SJean-Baptiste Boric  *
24*a824f5a1SJean-Baptiste Boric  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
25*a824f5a1SJean-Baptiste Boric  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26*a824f5a1SJean-Baptiste Boric  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27*a824f5a1SJean-Baptiste Boric  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
28*a824f5a1SJean-Baptiste Boric  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29*a824f5a1SJean-Baptiste Boric  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30*a824f5a1SJean-Baptiste Boric  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31*a824f5a1SJean-Baptiste Boric  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32*a824f5a1SJean-Baptiste Boric  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33*a824f5a1SJean-Baptiste Boric  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34*a824f5a1SJean-Baptiste Boric  */
35*a824f5a1SJean-Baptiste Boric 
36*a824f5a1SJean-Baptiste Boric #if HAVE_STDIO_H
37*a824f5a1SJean-Baptiste Boric #include <stdio.h>
38*a824f5a1SJean-Baptiste Boric #endif
39*a824f5a1SJean-Baptiste Boric 
40*a824f5a1SJean-Baptiste Boric #include "lib.h"
41*a824f5a1SJean-Baptiste Boric #include "version.h"
42*a824f5a1SJean-Baptiste Boric 
43*a824f5a1SJean-Baptiste Boric void
show_version(void)44*a824f5a1SJean-Baptiste Boric show_version(void)
45*a824f5a1SJean-Baptiste Boric {
46*a824f5a1SJean-Baptiste Boric 	printf("%d\n", PKGTOOLS_VERSION);
47*a824f5a1SJean-Baptiste Boric 	exit (0);
48*a824f5a1SJean-Baptiste Boric }
49*a824f5a1SJean-Baptiste Boric 
50