/* * 27-Mar-96: Jan-Piet Mens * added 'match' option (-m) to specify regular expressions NOT to be included * in the CD image. */ #ifdef APPLE_HYB /* * Added a number of routines to create lists of files to hidden from * the ISO9660 and/or Joliet trees. James Pearson (j.pearson@ge.ucl.ac.uk) * January 1999 (these will probably appear in mkisofs in the future) */ #endif /* APPLE_HYB */ #include "config.h" #include #include #include #ifndef VMS #ifdef HAVE_MALLOC_H #include #else #include #endif #endif #include #include #include "match.h" #define MAXMATCH 1000 static char *mat[MAXMATCH]; int add_match(fn) char * fn; { register int i; for (i=0; mat[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ } /* ISO9660/RR hide */ static char *i_mat[MAXMATCH]; int i_add_match(fn) char * fn; { register int i; for (i=0; i_mat[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ } intptr_t i_ishidden() { return((intptr_t)i_mat[0]); } /* Joliet hide */ static char *j_mat[MAXMATCH]; int j_add_match(fn) char * fn; { register int i; for (i=0; j_mat[i] && i excluded filenmae */ } } return 0; /* not found -> not excluded */ } intptr_t j_ishidden() { return((intptr_t)j_mat[0]); } #ifdef APPLE_HYB /* HFS hide */ static char *hfs_mat[MAXMATCH]; int hfs_add_match(fn) char * fn; { register int i; for (i=0; hfs_mat[i] && i