Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNick Daly <Nick.M.Daly@gmail.com>2014-02-23 11:52:47 -0600
committerNick Daly <Nick.M.Daly@gmail.com>2014-02-23 11:52:47 -0600
commita884f5a57c2edc58c98a82c0f1ad077c126adcf6 (patch)
tree5ff3fcc71494f73221bf2f62471dc987320e5270 /bin
parentbf62a043e9eb6a8f3d05319563c1878d4f14c7d5 (diff)
CUSTOMIZATIONS variable: arbitrary, exciting, extensiblity.
Treat variable values as system attributes and use that to add new packages, tools, or options down the line. Maybe it'll turn out to be just bad design, but it's sure handy.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mk_freedombox_image13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index 30f68c6..53658da 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -34,6 +34,9 @@ logrotate module-init-tools netbase rsyslog udev debian-archive-keyring"
# Packages needed on the dreamplug
dreamplug_pkgs="linux-image-kirkwood u-boot-tools u-boot"
+# Packages needed for gui-based self-hosted development
+dev_pkgs="task-desktop emacs org-mode git hg"
+
if [ -z "$ARCHITECTURE" ] ; then
ARCHITECTURE=i386
fi
@@ -68,6 +71,16 @@ case "$MACHINE" in
" ;;
esac
+# allow for lots of extra fun customization options.
+for customization in "$CUSTOMIZATIONS"
+do
+ case "$customization" in
+ development)
+ extra_pkgs="$extra_pkgs $dev_pkgs"
+ ;;
+ esac
+done
+
for p in $base_pkgs $extra_pkgs; do
pkgopts="$pkgopts --package $p"
done