2 Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
17 #endif /* HAVE_CONFIG_H */
20 #include <sys/types.h>
29 #include <atalk/cnid.h>
30 #include <atalk/volinfo.h>
31 #include <atalk/logger.h>
34 static void usage_main(void)
37 printf("Usage: ad ls|rm|cp|mv|set [file|dir, ...]\n");
39 printf("Usage: ad ls [file|dir, ...]\n");
42 int main(int argc, char **argv)
44 setuplog("default log_debug /dev/tty");
51 if (STRCMP(argv[1], ==, "ls"))
52 return ad_ls(argc - 1, argv + 1);
53 else if (STRCMP(argv[1], ==, "cp"))
54 return ad_cp(argc - 1, argv + 1);