summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-03-05 05:55:00 +0000
committerNick White <git@njw.me.uk>2009-03-05 05:55:00 +0000
commitb1b534d46e61603b46a89ead3891c1f860be2625 (patch)
treeb69728660e3c9e364f368efb3a48a5993022e359
parent6a7da14fe5b1f8666ee7e3994fbd975e83f7b43a (diff)
Use autoconf variables in code
-rw-r--r--src/getht.c4
-rw-r--r--src/version.h21
2 files changed, 2 insertions, 23 deletions
diff --git a/src/getht.c b/src/getht.c
index 63ba956..f18d390 100644
--- a/src/getht.c
+++ b/src/getht.c
@@ -18,6 +18,7 @@
*
*/
+#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -26,7 +27,6 @@
#include <sys/stat.h>
#include <curl/curl.h>
-#include "version.h"
#include "issue.h"
#include "getht.h"
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
option = 1;
break;
case 'V':
- printf("GetHT version: %s\n",VERSION);
+ printf("GetHT version: %s\n",PACKAGE_VERSION);
option = 1;
return 0;
break;
diff --git a/src/version.h b/src/version.h
deleted file mode 100644
index a0b4834..0000000
--- a/src/version.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright 2006,2008 Nick White
- *
- * This file is part of GetHT
- *
- * GetHT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * GetHT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GetHT. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#define VERSION "0.1"