taste-edit-msc 475 Bytes
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
1 2 3 4 5
#!/bin/bash -e

# TASTE MSC Editor
# Edit a MSC file

Maxime Perrotin's avatar
Maxime Perrotin committed
6
if [ -t 1 ] ; then
Maxime Perrotin's avatar
Maxime Perrotin committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
    COLORON="\e[1m\e[32m"
    REDCOLORON="\e[1m\e[31m"
    COLOROFF="\e[0m"
else
    COLORON=""
    REDCOLORON=""
    COLOROFF=""
fi

INFO="${COLORON}[INFO]${COLOROFF}"
ERROR="${REDCOLORON}[ERROR]${COLOROFF}"

MSC_FILENAME=$1

echo -e "${INFO} Opening MSC Editor..."
echo -e "${INFO} Filename: ${MSC_FILENAME}"

EDITOR=taste-msc-editor


if [ -z $NONINTERACTIVE ]
then
Maxime Perrotin's avatar
Maxime Perrotin committed
29
    $EDITOR -o $MSC_FILENAME
Maxime Perrotin's avatar
Maxime Perrotin committed
30 31
fi