# # # file: build_list_targets.shlib # purpose: common file for simplified build_list_targets' shell scripts # in special dirs # created: pasha may 27 2001 # modified: # modification: # pending: # notes: it supposed to be sourced by original script # ################### process command line opts ######################## while test $# -gt 0 do arg="$1" shift case "$arg" in --src=*) SRC=`echo $arg | sed -e 's/--src=//'` ;; --target=*) TARGET=`echo $arg | sed -e 's/--target=//'` ;; esac done if [ "$SRC" == "" ] || [ "$TARGET" == "" ]; then echo Usage: $0 --src=\ --target=\ 1>&2 exit 1 fi ##################################################################### mkdir -p $TARGET || exit 1 # end of build_list_targets.shlib