allow rolling from anywhere
Change-Id: I27e4190aeeb48474effa05cd306bde22a3ed8493 Reviewed-on: https://skia-review.googlesource.com/120183 Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
872da6b571
commit
b40a95152d
27
third_party/skcms/roll.sh
vendored
27
third_party/skcms/roll.sh
vendored
@ -8,20 +8,21 @@
|
|||||||
set -e
|
set -e
|
||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
tmp=$(mktemp -d)
|
here=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)
|
||||||
git clone --quiet --depth 1 https://skia.googlesource.com/skcms.git $tmp
|
skcms=$(mktemp -d)
|
||||||
|
git clone --quiet --depth 1 https://skia.googlesource.com/skcms.git $skcms
|
||||||
|
|
||||||
git rm --quiet LICENSE
|
git rm --quiet $here/LICENSE
|
||||||
git rm --quiet skcms.h
|
git rm --quiet $here/skcms.h
|
||||||
git rm --quiet skcms.c
|
git rm --quiet $here/skcms.c
|
||||||
git rm --quiet -r src
|
git rm --quiet -r $here/src
|
||||||
|
|
||||||
cp $tmp/LICENSE .
|
cp $skcms/LICENSE $here
|
||||||
cp $tmp/skcms.h .
|
cp $skcms/skcms.h $here
|
||||||
cp $tmp/skcms.c .
|
cp $skcms/skcms.c $here
|
||||||
cp -r $tmp/src .
|
cp -r $skcms/src $here
|
||||||
|
|
||||||
git add .
|
git add $here
|
||||||
git commit -m "skcms→$(git -C $tmp log -1 --pretty=format:'%h %s')"
|
git commit -m "skcms→$(git -C $skcms log -1 --pretty=format:'%h %s')"
|
||||||
|
|
||||||
rm -rf $tmp
|
rm -rf $skcms
|
||||||
|
Loading…
Reference in New Issue
Block a user