From 1ce14002289b676c54729e9d9dfaa7f6fd58024b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 10 Jul 2011 22:44:04 -0400 Subject: cleanup and bashify install hooks No logical code changes -- this is purely a syntactical cleanup and standardization across the build hooks along with ensuring that help messages are wrapped to 80 columns or less. All hooks get the same treatment, adhering to the following style: #!/bin/bash build() { COMMANDS } help() { cat < --- install/usbinput | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'install/usbinput') diff --git a/install/usbinput b/install/usbinput index e4bf27e..aa4e1a6 100644 --- a/install/usbinput +++ b/install/usbinput @@ -1,24 +1,18 @@ -# vim: set ft=sh: +#!/bin/bash -build() -{ - MODULES=" $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811_hcd" -e "isp116x_hcd") " - MODULES=" $(echo ${MODULES}) $(all_modules "/hid/hid-") " +build() { + MODULES=" $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811_hcd" -e "isp116x_hcd")" + MODULES+=" $(all_modules "/hid/hid-")" - MODULES=$(echo ${MODULES}) #trim whitespace - if [ -n "${MODULES}" ]; then - MODULES="${MODULES} usbhid" - fi - BINARIES="" - FILES="" - SCRIPT="" + [[ $MODULES ]] && MODULES+=" usbhid" } -help () -{ -cat<