GNU portable shell tool for creating shell scripts portably
GNU's portable shell tool
shtool
$ shtool mkdir -f -p -m 755 /path/to/nested/directory
$ shtool install -c -m 755 script.sh /usr/local/bin/
$ shtool version -l long -d short