- local SHORTOPTS='p,c,a,v'
- local LONGOPTS='target:,debug,clean,print-env,configure,autoreconf'
-
- if ! options=$(getopt --shell bash --longoptions $LONGOPTS --options $SHORTOPTS -n 'bootstrap' -- "$@"); then
- die 'Bad option given'
- fi
-
- eval set -- "$options"
-
- while [[ $# -gt 0 ]]; do
- case $1 in
- -a | --autoreconf )