Add diff script
This commit is contained in:
parent
0a1370ec92
commit
153ca32d48
1 changed files with 16 additions and 0 deletions
16
diff.sh
Executable file
16
diff.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# != 5 ]; then
|
||||||
|
echo "Usage: diff.sh HOMEWORK BEFORE_SUBMISSION_ID AFTER_SUBMISSION_ID PREFIX SRC"
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
|
|
||||||
|
HOMEWORK=$1
|
||||||
|
BEFORE=$2
|
||||||
|
AFTER=$3
|
||||||
|
SRC=$4/$5
|
||||||
|
|
||||||
|
COMMON_PATH=/home/kontr/kontr/_tmp_/pb071/$HOMEWORK
|
||||||
|
|
||||||
|
echo "vimdiff $COMMON_PATH/$BEFORE/$SRC $COMMON_PATH/$AFTER/$SRC"
|
||||||
|
vimdiff $COMMON_PATH/$BEFORE/$SRC $COMMON_PATH/$AFTER/$SRC
|
Reference in a new issue