Skip to content

Conversation

@phikal
Copy link

@phikal phikal commented Jan 15, 2018

The title pretty much says it. I implemented these two features because the markdown client I'm using (pandoc) can be pretty slow from time to time, so I'd rather not that all every file is re-rendered all the time. Multiprocessing is practically a make -jN ripoff, but currently it just defaults to the number of cores, if nproc is found, otherwise it just runs everything sequentially.

If you have any problem with any of these changed, feel free to tell me, because to my knowledge, zodiac would be the only simple web-framework to support these features with the amount of flexibility offered, and I guess that others would also appropriate it.

optpart = optpart " " opts[i]
}
printf "find \"%s\" -type f \\( %s \\) -exec zod-%s \"%s\" \"%s\" \"%s\" {} \\;", proj, optpart, phase, zod_lib, proj, target
printf "find \"%s\" -type f -cnewer \"%s/.zod/state\" \\( %s \\) -print0 | xargs -0 -P %s -I {} zod-%s \"%s\" \"%s\" \"%s\" {} \\;",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -P option to xargs is not POSIX standardized. It is not supported by busybox, however it is supported by GNU findutils, by FreeBSD, OpenBSD, macOS, and illumos.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -cnewer option to find is not POSIX standardized. Maybe it can be replaced by -newer, which is POSIX standardized, however it compares the modification time of the files, rather than their change time, to the modification time of ./zod/state. I am not exactly sure how that would make a difference.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use any of this any more, but I was not sure if zodiac consciously aspires towards POSIX compliance?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use any of this any more, but I was not sure if zodiac consciously aspires towards POSIX compliance?

To be honest, I do not know either! I don't think it is stated anywhere. But there have been people trying to use "zodiac" with busybox before (see #13), so some people might care.

@phikal
Copy link
Author

phikal commented Oct 26, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants