Skip to content

Commit

Permalink
Skip adding or patching .DS_Store files when creating a patchfile on …
Browse files Browse the repository at this point in the history
…MacOS.
  • Loading branch information
icculus committed May 18, 2005
1 parent 4137801 commit b1fce69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mojopatch.c
Expand Up @@ -1749,6 +1749,15 @@ static int compare_directories(SerialArchive *ar,
/* check for files added in newer version... */
for (i = files2; i != NULL; i = i->next)
{
#if PLATFORM_MACOSX
/* !!! FIXME: Make this an option. */
if (strcmp(i->fname, ".DS_Store") == 0)
{
_dlog("...skipped .DS_Store file...");
continue;
} /* if */
#endif

_dlog("([%s]...)", i->fname);

snprintf(filebuf1, sizeof (filebuf1), "%s%s%s", base1, PATH_SEP, i->fname);
Expand Down

0 comments on commit b1fce69

Please sign in to comment.