From 63fd760a37905c45d26fc3d49cac261fad1b4808 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Mon, 9 Oct 2017 15:45:33 -0400 Subject: Remove trailing whitespace. Also adds a presubmit to prevent adding trailing whitespace to source code in the future. Change-Id: I41a4df81487f6f00aa19b188f0cac6a3377efde6 Reviewed-on: https://skia-review.googlesource.com/57380 Reviewed-by: Ravi Mistry Reviewed-by: Mike Reed Commit-Queue: Ben Wagner --- tools/mirror-dev.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tools/mirror-dev.sh') diff --git a/tools/mirror-dev.sh b/tools/mirror-dev.sh index 0512a78ea3..eb948f4417 100755 --- a/tools/mirror-dev.sh +++ b/tools/mirror-dev.sh @@ -1,3 +1,7 @@ +# Copyright 2013 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + # For each installed *-dev package DEV for DEV in $(dpkg --list | grep '^ii [^ ]' | cut -d ' ' -f 3 | grep '\-dev$') do @@ -10,14 +14,14 @@ echo "$DEV installed $DEV_64_SO which is real." continue fi - + DEV_64_TARGET=$(readlink $DEV_64_SO) - DEV_64_TARGET_FULL=$(readlink -f $DEV_64_SO) - + DEV_64_TARGET_FULL=$(readlink -f $DEV_64_SO) + DEV_32_SO=$(echo $DEV_64_SO | sed -e 's@/lib/x86_64-linux-gnu/@/lib/i386-linux-gnu/@') DEV_32_TARGET=$(echo $DEV_64_TARGET | sed -e 's@/lib/x86_64-linux-gnu/@/lib/i386-linux-gnu/@') DEV_32_TARGET_FULL=$(echo $DEV_64_TARGET_FULL | sed -e 's@/lib/x86_64-linux-gnu/@/lib/i386-linux-gnu/@') - + # Error if DEV_32_TARGET does not exist. if ! test -e $DEV_32_TARGET_FULL then @@ -27,7 +31,7 @@ #echo " $DEV_32_SO -> $DEV_32_TARGET ($DEV_32_TARGET_FULL)" continue fi - + # Create DEV_32_SO sudo ln -s $DEV_32_TARGET $DEV_32_SO done -- cgit v1.2.3