File: compare

package info (click to toggle)
breathe 4.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,764 kB
  • sloc: python: 9,877; cpp: 1,434; makefile: 513; ansic: 150; sh: 67
file content (56 lines) | stat: -rwxr-xr-x 1,387 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

first=$1
second=$2

firstdir=comparison/first
seconddir=comparison/second

# Remember the branch we're on
currentbranch=`git symbolic-ref --short HEAD`

# Make sure the output directory exists
mkdir -p comparison

# Remove any previous builds
rm -fr $firstdir
rm -fr $seconddir

export BREATHE_COMPARE=True

# Checkout the first target
echo git checkout $1
git checkout $1
# Run doxygen for this state
(cd ../examples/specific; make)
(cd ../examples/tinyxml; make)
(cd ../examples/doxygen; make)
# Clean current sphinx build directory
make clean
# Make sure the BUILDDIR variable can be overridden in the Makfile. Required for older commits
sed -i 's/BUILDDIR      = build/BUILDDIR     ?= build/g' Makefile
# Build into our first comparison directory
make html BUILDDIR=$firstdir
# Reset the Makefile to its state for this commit
git checkout Makefile


# Checkout the second target and repeat
echo git checkout $2
git checkout $2
(cd ../examples/specific; make)
(cd ../examples/tinyxml; make)
(cd ../examples/doxygen; make)
make clean
sed -i 's/BUILDDIR      = build/BUILDDIR     ?= build/g' Makefile
make html BUILDDIR=$seconddir
git checkout Makefile

# Return to our current branch
echo git checkout $currentbranch
git checkout $currentbranch

# Launch meld to compare the two html directories
echo meld $firstdir/html $seconddir/html
meld $firstdir/html $seconddir/html