23 lines
517 B
Bash
Executable File
23 lines
517 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Routing acoeur commands to corresponding shell command
|
|
|
|
echo
|
|
echo "Triggering command for ${1##*/content/} $2"
|
|
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
case $2 in
|
|
*.create) ./_commands/create.sh "$1" "$2";;
|
|
*.delete) ./_commands/delete.sh "$1" "$2";;
|
|
*.choice) ./_commands/choice.sh "$1" "$2";;
|
|
*.content) ./_commands/content.sh "$1" "$2";;
|
|
*.prop) ./_commands/prop.sh "$1" "$2";;
|
|
*.md) ./_commands/default_actions.sh "$1" "$2";;
|
|
esac
|
|
|
|
case $2 in
|
|
*.md|*.result|*.jpg|*.png|*.gif) ;;
|
|
*.*) rm "$1/$2";;
|
|
esac
|