diff options
author | Sebastian | 2010-04-09 23:56:28 +0200 |
---|---|---|
committer | Sebastian | 2010-04-09 23:56:28 +0200 |
commit | bbf39bd59f31084d499c2cdd064274093b39dad8 (patch) | |
tree | 6715dffc0fc60fec9df5efdbe6a127faf454881b /tasks/locales.task.sh | |
parent | added caching (diff) | |
download | broot-bbf39bd59f31084d499c2cdd064274093b39dad8.tar.gz broot-bbf39bd59f31084d499c2cdd064274093b39dad8.tar.xz broot-bbf39bd59f31084d499c2cdd064274093b39dad8.zip |
added dependency based system to run defined tasks
Diffstat (limited to 'tasks/locales.task.sh')
-rw-r--r-- | tasks/locales.task.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tasks/locales.task.sh b/tasks/locales.task.sh new file mode 100644 index 0000000..3afc19f --- /dev/null +++ b/tasks/locales.task.sh @@ -0,0 +1,11 @@ +locales_require_bindmounts=1 + +locales() { + local ME=locales + # fix locales + chroot-aptinstall locales > $BROOT_LOG.$ME 2>&1 + sed -i -e "s,^#.*\(en_US.*\)$,\1," $BROOT_BUILDROOT_PATH/etc/locale.gen + chroot-exec locale-gen >> $BROOT_LOG.$ME 2>&1 + lastline=$(tail -n 1 $BROOT_LOG.$ME) + echo " $lastline" +} |