mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 18:16:35 +01:00
Added development helper tools for MAC OS
This commit is contained in:
parent
ab4c15903c
commit
7523082df3
5 changed files with 137 additions and 0 deletions
27
tools/dev_tools/macos/perdiff
Executable file
27
tools/dev_tools/macos/perdiff
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Generate a unified diff between two specified revisions in a
|
||||
# Perforce repository
|
||||
#
|
||||
|
||||
if [ $# -lt 3 ] ; then
|
||||
echo "usage: $0 DEPOT-SPEC REV1 REV2"
|
||||
echo "OR : $0 DEPOT-SPEC REV1 DEPOT-SPEC REV2"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $# -eq 3 ] ; then
|
||||
depot1=$1
|
||||
depot2=$1
|
||||
rev1=$2
|
||||
rev2=$3
|
||||
elif [ $# -eq 4 ] ; then
|
||||
depot1=$1
|
||||
rev1=$2
|
||||
depot2=$3
|
||||
rev2=$4
|
||||
fi
|
||||
|
||||
p4 diff2 -u ${depot1}...@${rev1} ${depot2}...@${rev2} | \
|
||||
sed 's@//depot/@E:/Source/@g' | \
|
||||
sed '/^+++\|---/s@/@\\@g'
|
||||
Loading…
Add table
Add a link
Reference in a new issue