Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81281 / c2html / executeProgram.sh
blob: bc027142096ef9c8395e300c30e1842c8dbf77c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

echo -n "Please enter the name of the C file you wish to highlight:"
read fileName
echo $fileName
if ! [[ $fileName == *.c\n ]]; then
    base=`pwd`"/c2html.pl"
    PL=swipl
    exec $PL -q -f "$base" "$fileName"
else
    echo "Not a correct C filename!"
fi