summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-12-09 15:37:03 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-28 18:00:58 +0100
commit33f2d6b84da88139b2b7ff53e470cb198d425381 (patch)
treec05a3cb96b2c48a95818882224d07c63501deeb3 /mkfs.c
parentbb6b4fea9f78939262446e35d2e0d4d0ed0d8e57 (diff)
btrfs-progs: autoconf: use standard PACKAGE_* macros
- use standard PACKAGE_{NAME,VERSION,STRING,URL,...} autoconf macros rather than homemade BTRFS_BUILD_VERSION - don't #include version.h, now the file is necessary for library API only Note that "btrfs version" returns "btrfs-progs <version>" instead of the original confusing "btrfs <version>". Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mkfs.c b/mkfs.c
index 18c4cb00..f83554d3 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -41,7 +41,6 @@
#include "volumes.h"
#include "transaction.h"
#include "utils.h"
-#include "version.h"
static u64 index_cnt = 2;
@@ -290,14 +289,14 @@ static void print_usage(void)
fprintf(stderr, "\t -O --features comma separated list of filesystem features\n");
fprintf(stderr, "\t -U --uuid specify the filesystem UUID\n");
fprintf(stderr, "\t -V --version print the mkfs.btrfs version and exit\n");
- fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
+ fprintf(stderr, "%s\n", PACKAGE_STRING);
exit(1);
}
static void print_version(void) __attribute__((noreturn));
static void print_version(void)
{
- fprintf(stderr, "mkfs.btrfs, part of %s\n", BTRFS_BUILD_VERSION);
+ fprintf(stderr, "mkfs.btrfs, part of %s\n", PACKAGE_STRING);
exit(0);
}
@@ -1489,8 +1488,8 @@ int main(int ac, char **av)
}
/* if we are here that means all devs are good to btrfsify */
- printf("%s\n", BTRFS_BUILD_VERSION);
- printf("See http://btrfs.wiki.kernel.org for more information.\n\n");
+ printf("%s\n", PACKAGE_STRING);
+ printf("See %s for more information.\n\n", PACKAGE_URL);
dev_cnt--;