File: cmake_doc.sh

package info (click to toggle)
exiv2 0.24-4.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,904 kB
  • ctags: 7,389
  • sloc: cpp: 65,740; sh: 10,246; ansic: 1,622; makefile: 654; python: 210; awk: 92; sed: 16; perl: 5
file content (24 lines) | stat: -rwxr-xr-x 467 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
#!/bin/bash

##
# this is called by the CMake build to build the docs
##
if [ $# == 1 ]; then
    CMAKE_BINARY_DIR="$1"
    cd ..
    
    if [ -e src/exv_conf.h ]; then
        mv src/exv_conf.h src/exv_conf.h.keep
    fi
    make config
    ./configure
    if [ -e src/exv_conf.h.keep ]; then
        mv src/exv_conf.h.keep src/exv_conf.h
    fi
    mkdir -p  src/bin/
    cp    -f  "${CMAKE_BINARY_DIR}/bin/taglist" src/bin/
    make doc
fi

# That's all Folks
##