#!/bin/bash args="${@:2}" normtags="--prefix=/usr" build="make" install="sudo checkinstall" if [ "$1" = 'nconf' ] then ./configure $normtags $args elif [ "$1" = 'nauto' ] then ./autogen.sh $normtags $args elif [ "$1" = 'ndevbuild' ] then ./autogen.sh $normtags $args && $build && $install elif [ "$1" = 'nbuild' ] then ./configure $normtags $args && $build && $install elif [ "$1" = 'gphotobuild' ] then ./autogen.sh && ./configure $normtags $args && $build && $install elif [ "$1" = 'winebuild' ] then ./configure $normtags $args && make depend && $build && $install elif [ "$1" = 'help' ] then echo "nconf, nauto, ndevbuild, nbuild, gphotobuild, winebuild" else echo $1 'is an invalid choice' fi