From b40a95152dc94fdbd213075f3539d5d0fc024d2a Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Tue, 10 Apr 2018 12:58:29 -0400 Subject: [PATCH] allow rolling from anywhere Change-Id: I27e4190aeeb48474effa05cd306bde22a3ed8493 Reviewed-on: https://skia-review.googlesource.com/120183 Reviewed-by: Brian Osman --- third_party/skcms/roll.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/third_party/skcms/roll.sh b/third_party/skcms/roll.sh index fab19882ff..6114286fca 100755 --- a/third_party/skcms/roll.sh +++ b/third_party/skcms/roll.sh @@ -8,20 +8,21 @@ set -e #set -x -tmp=$(mktemp -d) -git clone --quiet --depth 1 https://skia.googlesource.com/skcms.git $tmp +here=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd) +skcms=$(mktemp -d) +git clone --quiet --depth 1 https://skia.googlesource.com/skcms.git $skcms -git rm --quiet LICENSE -git rm --quiet skcms.h -git rm --quiet skcms.c -git rm --quiet -r src +git rm --quiet $here/LICENSE +git rm --quiet $here/skcms.h +git rm --quiet $here/skcms.c +git rm --quiet -r $here/src -cp $tmp/LICENSE . -cp $tmp/skcms.h . -cp $tmp/skcms.c . -cp -r $tmp/src . +cp $skcms/LICENSE $here +cp $skcms/skcms.h $here +cp $skcms/skcms.c $here +cp -r $skcms/src $here -git add . -git commit -m "skcms→$(git -C $tmp log -1 --pretty=format:'%h %s')" +git add $here +git commit -m "skcms→$(git -C $skcms log -1 --pretty=format:'%h %s')" -rm -rf $tmp +rm -rf $skcms