Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/installer/linux/common/symlinks.include

Issue 2107893004: Support relocatable RPM packages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 NSS_FILES="libnspr4.so.0d libplds4.so.0d libplc4.so.0d libssl3.so.1d \ 1 NSS_FILES="libnspr4.so.0d libplds4.so.0d libplc4.so.0d libssl3.so.1d \
2 libnss3.so.1d libsmime3.so.1d libnssutil3.so.1d" 2 libnss3.so.1d libsmime3.so.1d libnssutil3.so.1d"
3 3
4 add_nss_symlinks() { 4 add_nss_symlinks() {
5 get_lib_dir 5 get_lib_dir
6 for f in $NSS_FILES 6 for f in $NSS_FILES
7 do 7 do
8 target=$(echo $f | sed 's/\.[01]d$//') 8 target=$(echo $f | sed 's/\.[01]d$//')
9 if [ -f "/$LIBDIR/$target" ]; then 9 if [ -f "/$LIBDIR/$target" ]; then
10 ln -snf "/$LIBDIR/$target" "@@INSTALLDIR@@/$f" 10 ln -snf "/$LIBDIR/$target" "${INSTALLDIR}/$f"
11 elif [ -f "/usr/$LIBDIR/$target" ]; then 11 elif [ -f "/usr/$LIBDIR/$target" ]; then
12 ln -snf "/usr/$LIBDIR/$target" "@@INSTALLDIR@@/$f" 12 ln -snf "/usr/$LIBDIR/$target" "${INSTALLDIR}/$f"
13 else 13 else
14 echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target". 14 echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target".
15 exit 1 15 exit 1
16 fi 16 fi
17 done 17 done
18 } 18 }
19 19
20 add_chrome_symlinks() {
21 ln -snf "${INSTALLDIR}/@@PACKAGE@@" "/usr/bin/@@USR_BIN_SYMLINK_NAME@@"
22 }
23
20 remove_nss_symlinks() { 24 remove_nss_symlinks() {
21 for f in $NSS_FILES 25 for f in $NSS_FILES
22 do 26 do
23 rm -rf "@@INSTALLDIR@@/$f" 27 rm -rf "${INSTALLDIR}/$f"
24 done 28 done
25 } 29 }
26 30
27 remove_udev_symlinks() { 31 remove_udev_symlinks() {
28 rm -rf "@@INSTALLDIR@@/libudev.so.0" 32 rm -rf "${INSTALLDIR}/libudev.so.0"
29 } 33 }
34
35 remove_chrome_symlinks() {
36 rm -rf "/usr/bin/@@USR_BIN_SYMLINK_NAME@@"
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698