#!/bin/sh -eu install_dir="$1" shift for mod; do printf "installing %s\n" "$mod" mkdir -p "$install_dir/$mod" install -m644 "$mod"/* "$install_dir/$mod" done