diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-24 20:38:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-24 20:38:54 +0000 |
commit | 0fe69f09cab89c31d274a2715b55608085480921 (patch) | |
tree | 353ead6bc665a695e0fa0c36fd6e5595cb1a0ecb /src | |
parent | 595ef71a982d9d8629608a67902948f306023c6b (diff) | |
download | wydawca-0fe69f09cab89c31d274a2715b55608085480921.tar.gz wydawca-0fe69f09cab89c31d274a2715b55608085480921.tar.bz2 |
* lib/version.c: New file
* lib/gsc.h (gsc_version): New function
* cvs/Makefile.am, ckaliases/Makefile.am, wydawca/Makefile.am,
lib/Makefile.am, jabberd/Makefile.am: Fix include dirs
* ckaliases/ckaliases.c, ckaliases/lex.l, ckaliases/ckaliases.h,
ckaliases/gram.y: Use long options. Implement --version
* wydawca/wydawca.c, jabberd/main.c: Use gsc_version to display
program version.
* doc/gsc.texi: Update
* bootstrap: Add vasprintf
git-svn-id: file:///svnroot/wydawca/trunk@292 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/wydawca.c | 12 |
2 files changed, 3 insertions, 13 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index f421330..26a9a79 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,5 +32,5 @@ wydawca_SOURCES=\ wydawca.h LDADD=../lib/libgsc.a ../gnu/libgnu.a @SQLLIB@ @GPGMELIB@ -INCLUDES = -I../lib -I../gnu -AM_CPPFLAGS=-DSYSCONFDIR=\"$(sysconfdir)\"
\ No newline at end of file +INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/gnu -I../gnu +AM_CPPFLAGS=-DSYSCONFDIR=\"$(sysconfdir)\" diff --git a/src/wydawca.c b/src/wydawca.c index 75f4440..3e9d020 100644 --- a/src/wydawca.c +++ b/src/wydawca.c @@ -30,16 +30,6 @@ char *tar_command_name = "tar"; unsigned wydawca_stat[MAX_STAT]; void -version () -{ - printf ("wydawca (%s)\n", PACKAGE_STRING); - printf ("Copyright (C) 2007 Sergey Poznyakoff\n"); - printf ("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"); - printf ("This is free software: you are free to change and redistribute it.\n"); - printf ("There is NO WARRANTY, to the extent permitted by law.\n"); -} - -void usage () { printf ("usage: wydawca [OPTIONS]\n"); @@ -226,7 +216,7 @@ main (int argc, char **argv) break; case 'v': - version (); + gsc_version ("wydawca"); exit (0); default: |