/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK
+/* Define to 1 if you want to ignore dot files with -X command line switch */
+#undef IGNORE_DOT_FILES
+
/* Define to 1 if you want to use the user/group name extened header */
#undef INCLUDE_OWNER_NAME_IN_HEADER
[Define to 1 if you want to leave an old archive])
fi
+# enable this option if you need to ignore '.file' files
+# (mainly for the Mac OS X) *experimental*
+AC_MSG_CHECKING(whether enable -X option which ignore dot files)
+AC_ARG_ENABLE(ignore-dot-files,
+ AC_HELP_STRING([--enable-ignore-dot-files],
+ [enable -X option [[default=no]]]),
+ ,
+ # default
+ enable_ignore_dot_files=no)
+
+AC_MSG_RESULT($enable_ignore_dot_files)
+if test "x$enable_ignore_dot_files" = xyes; then
+ AC_DEFINE(IGNORE_DOT_FILES, 1,
+ [Define to 1 if you want to ignore dot files with -X command line switch])
+fi
+
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile olddoc/Makefile])
AC_CONFIG_FILES([tests/Makefile tests/lha-test])
AC_OUTPUT
w=<dir> specify extract directory (x/e)\n\
x=<pattern> eXclude files (a/u/c)\n\
");
+#if IGNORE_DOT_FILES /* experimental feature */
+ fprintf(stderr, "\
+ X ignore dot files (a/u/c)\n\
+");
+#endif
}
static void
sizeof(char*) * (i+2));
if (*p == 0) {
+ if (*argv == 0) {
+ print_tiny_usage();
+ exit(2);
+ }
exclude_files[i] = *argv++; argc--;
exclude_files[i+1] = 0;
goto next;
p += strlen(p);
}
break;
+#if IGNORE_DOT_FILES /* experimental feature */
+ case 'X':
+ for (i = 0; exclude_files && exclude_files[i]; i++)
+ ;
+ exclude_files = (char**)xrealloc(exclude_files,
+ sizeof(char*) * (i+2));
+
+ exclude_files[i] = xstrdup(".*");
+ exclude_files[i+1] = 0;
+ break;
+#endif
case 'w':
if (*p == '=')
p++;
if (*p == 0) {
+ if (*argv == 0) {
+ print_tiny_usage();
+ exit(2);
+ }
extract_directory = *argv++; argc--;
goto next;
}