You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
457 B

#!/bin/sh
redf=$(tput setaf 1)
bluf=$(tput setaf 6)
gref=$(tput setaf 2)
yelf=$(tput setaf 3)
reset=$(tput op)
echo "${bluf}CREATING PATCH${reset}"
FILE=`basename $@`
CLEAN=`find eclipse/Clean/src/main/java | grep $FILE`
CAULD=`find eclipse/cauldron/src/main/java | grep $FILE`
PATCH=`find patches/ | grep -i $FILE`
git diff --no-index $CLEAN $CAULD > $PATCH
echo "Diff of ${redf}$CLEAN${reset} and ${gref}$CAULD${reset} written to ${yelf}$PATCH${reset}"