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

Side by Side Diff: chrome_linux/installer/common/symlinks.include

Issue 33333002: Roll Linux reference build to official build 30.0.1599.33 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome_linux/installer/common/rpmrepo.cron ('k') | chrome_linux/installer/common/updater » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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"
3
4 add_nss_symlinks() {
5 get_lib_dir
6 for f in $NSS_FILES
7 do
8 target=$(echo $f | sed 's/\.[01]d$//')
9 if [ -f "/$LIBDIR/$target" ]; then
10 ln -snf "/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
11 elif [ -f "/usr/$LIBDIR/$target" ]; then
12 ln -snf "/usr/$LIBDIR/$target" "@@INSTALLDIR@@/$f"
13 else
14 echo $f not found in "/$LIBDIR/$target" or "/usr/$LIBDIR/$target".
15 exit 1
16 fi
17 done
18 }
19
20 remove_nss_symlinks() {
21 for f in $NSS_FILES
22 do
23 rm -rf "@@INSTALLDIR@@/$f"
24 done
25 }
26
27 # Fedora 18 now has libudev.so.1. http://crbug.com/145160
28 # Same for Ubuntu 13.04. http://crbug.com/226002
29 LIBUDEV_0=libudev.so.0
30 LIBUDEV_1=libudev.so.1
31
32 add_udev_symlinks() {
33 get_lib_dir
34 if [ -f "/$LIBDIR/$LIBUDEV_0" -o -f "/usr/$LIBDIR/$LIBUDEV_0" -o -f "/lib/$LIB UDEV_0" ]; then
35 return 0
36 fi
37
38 if [ -f "/$LIBDIR/$LIBUDEV_1" ]; then
39 ln -snf "/$LIBDIR/$LIBUDEV_1" "@@INSTALLDIR@@/$LIBUDEV_0"
40 elif [ -f "/usr/$LIBDIR/$LIBUDEV_1" ];
41 then
42 ln -snf "/usr/$LIBDIR/$LIBUDEV_1" "@@INSTALLDIR@@/$LIBUDEV_0"
43 else
44 echo "$LIBUDEV_1" not found in "$LIBDIR" or "/usr/$LIBDIR".
45 exit 1
46 fi
47 }
48
49 remove_udev_symlinks() {
50 rm -rf "@@INSTALLDIR@@/$LIBUDEV_0"
51 }
OLDNEW
« no previous file with comments | « chrome_linux/installer/common/rpmrepo.cron ('k') | chrome_linux/installer/common/updater » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698