aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-24 18:31:23 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-24 18:34:54 +0000
commit886388f1449470b13b4f3749541314d34b6ef1c7 (patch)
treed6f13b1ebb9b6df9c45f60b858752370f79ac9ef /src
parent66c4eabaf093962ee343004e4c771f803dcab1de (diff)
downloadverteco-886388f1449470b13b4f3749541314d34b6ef1c7.tar.gz
ftphelper: add --version argument
Diffstat (limited to 'src')
-rw-r--r--src/ftphelper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ftphelper.c b/src/ftphelper.c
index fae3771..69527db 100644
--- a/src/ftphelper.c
+++ b/src/ftphelper.c
@@ -19,6 +19,10 @@
// gcc ftphelper.c -o ftphelper `pkg-config --libs --cflags libconfig`
+#ifndef VERSION_STRING
+#define VERSION_STRING "[undefined version]"
+#endif
+
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -102,4 +106,8 @@ int main(int argc, char *argv[]) {
printf("%s", ftp_directory);
return 0;
}
+ if (strcmp(argv[1], "--version") == 0) {
+ printf("%s", VERSION_STRING);
+ return 0;
+ }
}
scan-tables.git/commit/debian/changelog?h=debian/0%2bgit20141009.d26b627-1&id=199e3529a4e095c4a9974199ef5e9042e77e1e78&follow=1'>New Upstream Snapshot (commit 1246b27)Jonathan McCrohan1-0/+6 2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9