1 2 3 4 5 6 7 8 9 10
#!/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