File: abi-check-install.sh.cmake

package info (click to toggle)
phonon 4:4.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 4,288 kB
  • sloc: cpp: 16,079; sh: 62; makefile: 58; xml: 32; awk: 22
file content (34 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (4)
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
#!/bin/bash

esc() {
    echo "$1" | sed -e 's/\//\\\//g' -e 's/\&/\\\&/g'
}

pwd_=`pwd`

cd @CMAKE_CURRENT_SOURCE_DIR@/..
if [ ! -e abi ]; then 
    mkdir abi
fi
cd abi

install_prefix="`esc "@CMAKE_INSTALL_PREFIX@"`"
target_dir_=`pwd`
target_dir="`esc $target_dir_`\/@PHONON_LIB_VERSION@\/${install_prefix}"
dest_dir="${target_dir_}/@PHONON_LIB_VERSION@"

cd $pwd_

sed -i "s/$install_prefix/$target_dir/" @DESCRIPTOR_FILE_PATH@
rm -rf $dest_dir
make install DESTDIR=$dest_dir

# cd ${target_dir_}
# args=""
# i=1
# for version in `ls | grep -P "\d\.\d\.\d"  | sort`; do
#     $args="${args} -d${i} ${version}/${version}.xml"
#     let "i=i+1"
# done
# 
# abi-compliance-checker -l Phonon $args