solarc-theme
solarc-theme copied to clipboard
Allow Arc source to be downloaded externally
- Adds the
--arc-directoryparameter that allows the arc source to be downloaded externally (this is mostly for use by packaging systems that prefer that they manage the source, usually for caching and reproducibility purposes) - Changes
$ARCVERSIONto$ARC_VERSIONto match how the other variables are named. - Allow
$ARC_VERSIONto be specified via the--arc-versionflag - Update the validated Arc version to
20210412 - Have the script copy from the pre-downloaded arc source or the downloaded arc source into a separate
arc-themeworking directory instead. - Update the inkscape command to work with the newer actions syntax. The old
--export-plain-svgflag is deprecated and generates a lot of warnings when the script is ran - My previous MR should have ran sed against
meson.buildinstead ofmeson.options. This has been corrected and the output of that part of the script has been clarified. - Replace the
find -execlogic withfind -print0|xargsso that we can multithread that file processing. This dramatically speeds up the build on my machine. The worker threads default to the number of CPUs, but this can be overridden with the--jobsflag.
On my system (which is a Ryzen 5900x on a decent NVME SSD) I timed the script pre-xargs:
Executed in 311.58 secs fish external
usr time 263.13 secs 461.00 micros 263.13 secs
sys time 64.86 secs 0.00 micros 64.86 secs
And post-xargs
Executed in 32.71 secs fish external
usr time 337.08 secs 235.00 micros 337.08 secs
sys time 72.87 secs 124.00 micros 72.87 secs
Both of these were executed with a pre-downloaded Arc source to try to minimize that from being a factor.