xbps-src: code to handle new pycompile trigger.

This commit is contained in:
Juan RP
2011-10-05 14:26:54 +02:00
parent c57f7509a3
commit aafb971991
3 changed files with 18 additions and 0 deletions

View File

@@ -258,6 +258,19 @@ _EOF
fi
fi
#
# Handle python bytecode archives with pycompile trigger.
#
if [ -n "${pycompile_dirs}" -o -n "${pycompile_module}" ]; then
if [ -n "${pycompile_dirs}" ]; then
echo "export pycompile_dirs=\"${pycompile_dirs}\"" >>$tmpf
fi
if [ -n "${pycompile_module}" ]; then
echo "export pycompile_module=\"${pycompile_module}\"" >>$tmpf
fi
_add_trigger pycompile
fi
# End of trigger var exports.
echo >> $tmpf