Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120825150
bamc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 7, 09:01
Size
902 B
Mime Type
text/x-shellscript
Expires
Wed, Jul 9, 09:01 (2 d)
Engine
blob
Format
Raw Data
Handle
27232529
Attached To
R1066 amc-cape
bamc
View Options
#!/bin/bash
# Set SNAME, SDIR and SPATH
if [ -h $0 ]; then SNAME=$(readlink $0); else SNAME=$0; fi
SDIR=$(dirname $SNAME)
if [[ "$SDIR" =~ ^/ ]]; then SPATH=$SDIR; else SPATH=$(realpath $(dirname $0)/$SDIR); fi
# Set DIR_LIB
DIR_LIB=$(realpath $SPATH/../lib/bash)
echo $DIR_LIB
# Source libs
source $DIR_LIB/tools.sh
source $DIR_LIB/colors.sh
source $DIR_LIB/io.sh
source $DIR_LIB/debugging.sh
source $DIR_LIB/cmdline_parser.sh
source $DIR_LIB/bamc_configuration.sh
source $DIR_LIB/bamc_sanity.sh
source $DIR_LIB/bamc_help.sh
source $DIR_LIB/bamc_workspace.sh
source $DIR_LIB/bamc_questions.sh
source $DIR_LIB/bamc_exams.sh
source $DIR_LIB/bamc_templates.sh
source $DIR_LIB/bamc_projects.sh
source $DIR_LIB/bamc_students.sh
source $DIR_LIB/bamc_amc-commands.sh
# Set some variables
DEFAULT_ITEMS=$(get_exam_list)
DEFAULT_ACTIONS="help"
CALLBACK_PREFIX="action_"
# Run!
run $@
# RIP
exit $?
#EOF
Event Timeline
Log In to Comment