Bash command line help scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
304 B

#!/bin/bash
# Utils
__shtpl_path__=$(realpath $0)
__shtpl_dir__=$(dirname $0)
__tpl_path__=$(realpath $1)
__tpl_name__=$(basename $__tpl_path__)
__tpl_dir__=$(dirname $__tpl_path__)
# Execution
eval "echo \"$(cat $1 | sed '
# Suppress hashbang
1{ /#\!.*shtpl/ d }
# Excape quotes
s/"/\\"/g
')\""