Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88609862
bamc_help.sh
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
Sat, Oct 19, 17:57
Size
2 KB
Mime Type
text/x-shellscript
Expires
Mon, Oct 21, 17:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21793241
Attached To
R1066 amc-cape
bamc_help.sh
View Options
#!/bin/bash
function
action_implemented
()
{
perma
"Implemented functions:"
grep
'function action_'
$DIR_LIB
/* | grep -v grep | cut -d
' '
-f 2 | cut -d
'('
-f 1 | cut -d
'_'
-f 2 | sort
return
0
}
function
action_help
()
{
local
item
=
$1
# Useless...
echo
-e
"${DarkGreen}USAGE:${NoColor} "
$(
basename
$0
)
" [-p|--params p1=v1,p2-v2,...] [-o|--only item1,item2,...] action1 [action2 ...]
e.g.: $(basename $0) --params workspace=~/AMC_Workspace init
e.g.: $(basename $0) show
Parameters:
-----------
${DarkGreen}debug${NoColor} (GENERAL) print debugging messages
${DarkGreen}force${NoColor} (GENERAL) do not ask for user confirmation
${DarkGreen}workspace|w${NoColor} (GENERAL) name a specific workspace
${DarkGreen}exam|e${NoColor} (GENERAL) name a specific exam within the workspace
Items:
-----------
${DarkGreen}item1${NoColor} (GENERAL) items are the existing exams (as printed by the 'list' action)
Actions:
--------
${DarkGreen}sanity-checks${NoColor} (GENERAL) check system
${DarkGreen}init${NoColor} (WORKSPACE) create a new workspace in the current directory
${DarkGreen}add-exam${NoColor} (EXAMS) add a new exam in the current workspace
${DarkGreen}list${NoColor} (EXAMS) print list of exams in the current workspace
${DarkGreen}clean${NoColor} (PROJECTS) remove project and output directories
${DarkGreen}project${NoColor} (PROJECTS) (re)build the AMC project(s)
${DarkGreen}check${NoColor} (PROJECTS) check the generated AMC project compiles
${DarkGreen}check-questions${NoColor} (PROJECTS) check LaTeX syntax of the questions
${DarkGreen}students${NoColor} (PDF) build students list
${DarkGreen}blank${NoColor} (PDF) build a blank (anonymous) exam
${DarkGreen}catalog${NoColor} (PDF) build a catalog of questions
${DarkGreen}sample${NoColor} (PDF) build a sample (4 exams) exam
${DarkGreen}exam${NoColor} (PDF) build PDF exam
${DarkGreen}exam-summary${NoColor} (PDF) print a summary of the generated exams"
return
0
}
Event Timeline
Log In to Comment