/*
- * Copyright (c) Zmanda, Inc. All Rights Reserved.
+ * Copyright (c) 2008-2012 Zmanda, Inc. All Rights Reserved.
*
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License version 2.1
- * as published by the Free Software Foundation.
+ * This program 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 2
+ * of the License, or (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful, but
+ * This program 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 Lesser General Public
- * License for more details.
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
*
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Contact information: Zmanda Inc., 465 S Mathlida Ave, Suite 300
- * Sunnyvale, CA 94086, USA, or: http://www.zmanda.com
+ * Contact information: Zmanda Inc., 465 S. Mathilda Ave., Suite 300
+ * Sunnyvale, CA 94085, USA, or: http://www.zmanda.com
*/
#include "amanda.h"
#include "getopt.h"
-#include "version.h"
#include "amar.h"
static struct option long_options[] = {
{
printf("Usage: amarchiver [--version|--create|--list|--extract] [--verbose]* [--file file]\n");
printf(" [filename]*\n");
+ exit(1);
}
static void
break;
case 5: opt_file = stralloc(optarg);
break;
- case 6: printf("amarchiver %s\n", version());
+ case 6: printf("amarchiver %s\n", VERSION);
exit(0);
break;
}
g_fprintf(stderr,"Only one of --create, --list or --extract must be provided\n");
usage();
}
- if (opt_list > 1) {
- if (argc) {
- g_fprintf(stderr, "--list does not take any additional filenames\n");
- usage();
- }
- }
if (opt_create > 0)
do_create(opt_file, opt_verbose, argc, argv);