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