Fix the fix-scan-view-path.diff path

This commit is contained in:
Sylvestre Ledru 2017-11-25 14:19:02 +00:00
parent aba0369bef
commit 0ee688cf90
3 changed files with 3 additions and 2 deletions

1
debian/changelog vendored
View File

@ -16,6 +16,7 @@ llvm-toolchain-5.0 (1:5.0.1~+rc1-1~exp1) experimental; urgency=medium
* Remove the hardcoded declarations of llvm version in debian/rules
* add /usr/lib/cuda to the CUDA toolkit search paths
Thanks to Andreas Beckmann for the patch (Closes: #882505) (LP: #1706326)
* Fix the fix-scan-view-path.diff path
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 30 Oct 2017 19:41:20 +0100

View File

@ -6,7 +6,7 @@ Index: llvm-toolchain-3.9-3.9/clang/tools/scan-view/bin/scan-view
kMaxPortsToTry = 100
###
+BASE_DIR = '/usr/share/clang/scan-view-3.9'
+BASE_DIR = '/usr/share/clang/scan-view-5.0'
def url_is_up(url):

View File

@ -4,7 +4,7 @@ TARGET_VERSION=5.0
ORIG_VERSION_2=4_0
TARGET_VERSION_2=5_0
LIST=`ls debian/control debian/orig-tar.sh debian/rules debian/patches/clang-analyzer-force-version.diff debian/patches/clang-format-version.diff debian/patches/python-clangpath.diff debian/patches/scan-build-clang-path.diff debian/patches/lldb-libname.diff debian/patches/fix-scan-view-path.diff debian/patches/lldb-addversion-suffix-to-llvm-server-exec.patch debian/patches/clang-tidy-run-bin.diff`
LIST=`ls debian/control debian/orig-tar.sh debian/rules debian/patches/clang-analyzer-force-version.diff debian/patches/clang-format-version.diff debian/patches/python-clangpath.diff debian/patches/scan-build-clang-path.diff debian/patches/lldb-libname.diff debian/patches/fix-scan-view-path.diff debian/patches/lldb-addversion-suffix-to-llvm-server-exec.patch debian/patches/clang-tidy-run-bin.diff debian/patches/fix-scan-view-path.diff`
for F in $LIST; do
sed -i -e "s|$ORIG_VERSION_2|$TARGET_VERSION_2|g" $F
sed -i -e "s|$ORIG_VERSION|$TARGET_VERSION|g" $F