bin bash SRC GEDIT_CURRENT_DOCUME NT_DIR GEDIT_CURRENT_DOCUME NT_NAME

1
2
3
4
5
6
7
#!/bin/bash
SRC=$GEDIT_CURRENT_DOCUMENT_DIR"/"$GEDIT_CURRENT_DOCUMENT_NAME
RSLT=${SRC//.*/.out}
rm -f $RSLT
echo $RSLT
echo $SRC
g++ -g -O2 -std=gnu++0x -o "$RSLT" "$SRC" && echo "DONE OK"