#!/bin/sh - # # To adjust the recipes to a new and better format (minor changes). # (GNU sed required) # for i in $(find . -type f -name 'recipe') do # Remove "set -e" from the build() function sed -i "/set -e/,+1 d" "$i" # Add "set -e" on the top with a commentary sed -i \ '/# limitations under the License./a\ \ \# Exit immediately on any error\ \set -e' "$i" # Remove special quoting for '{}' sed -i \ "s#find . -type f -exec lzip -9 '{}' +#find . -type f -exec lzip -9 {} +#" "$i" # Explain option for variables in "unset" (if any) sed -i '#unset#unset -v#' "$i" done