Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61574717
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
Tue, May 7, 13:26
Size
586 B
Mime Type
text/x-shellscript
Expires
Thu, May 9, 13:26 (2 d)
Engine
blob
Format
Raw Data
Handle
17530182
Attached To
R1066 amc-cape
bamc
View Options
#!/bin/bash
#!/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
$(
pwd
)
/
$SDIR
)
;
fi
# Set DIR_LIB
DIR_LIB
=
$(
realpath
$SPATH
/../lib/bash
)
# Source libs
source
$DIR_LIB
/colors.sh
source
$DIR_LIB
/io.sh
source
$DIR_LIB
/cmdline_parser.sh
source
$DIR_LIB
/bamc_configuration.sh
source
$DIR_LIB
/bamc_help.sh
source
$DIR_LIB
/bamc_workspace.sh
DEFAULT_ITEMS
=
""
DEFAULT_ACTIONS
=
"help"
CALLBACK_PREFIX
=
"action_"
run
$@
RC
=
$?
debug
"Return code: $RC"
exit
$RC
Event Timeline
Log In to Comment