#!/bin/bash # Logs in into all packages sequentially in the order of the package dependencies source `which ttPM-funcs` 2>/dev/null || exit 1 # Check root checkRoot # Provide help if requested if [ "$1" = "-h" ] then printMsg warning "Usage: `basename $0` [-a|--autologout] [-b|--autobuild] [-v|--checkversion] [-t|--dotrace]" printMsg warning "Based on the arguments appropriate flags are set" exit 0 fi install -d $TT_FLAGS_DIR # Parse arguments and set flags while [ $# != 0 ] do case "$1" in -a|--autologout) touch $TT_FLAGS_DIR/autoLogout ;; -b|--autobuild) touch $TT_FLAGS_DIR/autoBuild ;; -v|--checkversion) touch $TT_FLAGS_DIR/checkVersion ;; -t|--dotrace) touch $TT_FLAGS_DIR/doTrace ;; esac shift 1 done # Manage all package in the link order for P in $(getPkgLinkOrder | grep "^\* " | sed -e "s@\* @@" -e "s@:@@") do managePkg $P done # Remove flags rm -f $TT_FLAGS_DIR/doTrace rm -f $TT_FLAGS_DIR/checkVersion rm -f $TT_FLAGS_DIR/autoBuild rm -f $TT_FLAGS_DIR/autoLogout