AC_PREREQ(2.61)
AC_INIT([tinc], m4_esyscmd_s((git describe || echo UNKNOWN) | sed 's/release-//'))
AC_CONFIG_SRCDIR([src/tincd.c])
-AM_INIT_AUTOMAKE([std-options subdir-objects nostdinc silent-rules -Wall])
+AM_INIT_AUTOMAKE([std-options subdir-objects nostdinc silent-rules -Wall info-in-builddir])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_SILENT_RULES([yes])
man_MANS = tincd.8 tinc.8 tinc.conf.5 tinc-gui.8
-EXTRA_DIST = tincinclude.texi.in tincd.8.in tinc.8.in tinc.conf.5.in tinc-gui.8.in sample-config.tar.gz
+EXTRA_DIST = tincinclude.texi.in tincd.8.in tinc.8.in tinc.conf.5.in tinc-gui.8.in sample-config
-CLEANFILES = *.html tincd.8 tinc.8 tinc.conf.5 tinc-gui.8 tincinclude.texi sample-config.tar.gz
-
-# Use `ginstall' in the definition of man_MANS to avoid
-# confusion with the `install' target. The install rule transforms `ginstall'
-# to install before applying any user-specified name transformations.
-transform = s/ginstall/install/; @program_transform_name@
-
-# For additional rules usually of interest only to the maintainer,
-# see GNUmakefile and Makefile.maint.
-
-sample-config.tar.gz: sample-config
- $(AM_V_GEN)GZIP=$(GZIP_ENV) $(AMTAR) chozf $@ --exclude .svn $<
+CLEANFILES = *.html tincd.8 tinc.8 tinc.conf.5 tinc-gui.8 tincinclude.texi
tincd.8.html: tincd.8
$(AM_V_GEN)w3mman2html $? > $@
import os
import platform
import time
+import sys
from argparse import ArgumentParser
import wx
argparser.add_argument('-n', '--net', metavar='NETNAME', dest='netname', help='Connect to net NETNAME')
argparser.add_argument('-p', '--pidfile', help='Path to the pid file (containing the controlcookie)')
+ argparser.add_argument('--version', action='store_true', help='Show version number')
options = argparser.parse_args()
+ if options.version:
+ print('tinc-gui 1.1pre?')
+ sys.exit(0)
+
main(options.netname, options.pidfile)
return 1;
}
- make_names(true);
- chdir(confbase);
-
if(show_version) {
printf("%s version %s (built %s %s, protocol %d.%d)\n", PACKAGE,
BUILD_VERSION, BUILD_DATE, BUILD_TIME, PROT_MAJOR, PROT_MINOR);
return 0;
}
+ make_names(true);
+ chdir(confbase);
+
#ifdef HAVE_MINGW
if(WSAStartup(MAKEWORD(2, 2), &wsa_state)) {
pong_SOURCES = pong.c
+AM_CFLAGS = -iquote.
+
clean-local:
-for pid in *.test.?/pid; do ../src/tinc --pidfile="$$pid" stop; done
-killall ../src/sptps_test
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize two nodes
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize and test one node
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Just test whether the executables work
$tincd --help
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize three nodes
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Skip this test if we aren't root or if "ip netns" does not exist
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Skip this test if we aren't root
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize server node
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Skip this test if we did not compile sptps_test
#!/bin/sh
-. ./testlib.sh
+. "${0%/*}/testlib.sh"
# Initialize one node