17 lines
627 B
Plaintext
17 lines
627 B
Plaintext
_zimfw_compile() {
|
|
# Compile zimfw scripts
|
|
local zroot_dir zfile
|
|
for zroot_dir in ${_zroot_dirs:|_zdisabled_root_dirs}; do
|
|
if [[ ! -w ${zroot_dir} ]]; then
|
|
_zimfw_print -R $'<%= yellow %><%= warn %><%= bold %>'${zroot_dir}$':<%= normalyellow %> No write permission, unable to compile.<%= normal %>'
|
|
continue
|
|
fi
|
|
for zfile in ${zroot_dir}/(^*test*/)#*.zsh(|-theme)(N-.); do
|
|
if [[ ! ${zfile}.zwc -nt ${zfile} ]]; then
|
|
zcompile -UR ${zfile} && _zimfw_print -R $'<%= okay %><%= bold %>'${zfile}$'.zwc:<%= normal %> Compiled'
|
|
fi
|
|
done
|
|
done
|
|
_zimfw_print 'Done with compile.'
|
|
}
|