diff options
author | Brad King <brad.king@kitware.com> | 2016-03-10 14:16:20 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-03-10 14:16:20 (GMT) |
commit | 030ec94780b7aaf0c495bfb5d6c7e12071342dfd (patch) | |
tree | 7e433196a6ed6e7a3c975e63d9122be3915142a4 | |
parent | 88a189f36764590ccbe78951db804ba8c5c84f9a (diff) | |
parent | 97149ff8db660c4cb49b5061157f3d0b34adcacb (diff) | |
download | CMake-030ec94780b7aaf0c495bfb5d6c7e12071342dfd.zip CMake-030ec94780b7aaf0c495bfb5d6c7e12071342dfd.tar.gz CMake-030ec94780b7aaf0c495bfb5d6c7e12071342dfd.tar.bz2 |
Merge topic 'update-third-party'
97149ff8 update-third-party: read attributes from the worktree
a35f4be6 update-third-party: Add license notice
afac3d10 update-third-party: remove empty directories as well
-rw-r--r-- | Utilities/Scripts/update-third-party.bash | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Utilities/Scripts/update-third-party.bash b/Utilities/Scripts/update-third-party.bash index 8925296..6aeeccd 100644 --- a/Utilities/Scripts/update-third-party.bash +++ b/Utilities/Scripts/update-third-party.bash @@ -1,3 +1,19 @@ +#============================================================================= +# Copyright 2015-2016 Kitware, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#============================================================================= + ######################################################################## # Script for updating third party packages. # @@ -32,7 +48,7 @@ # Utility functions ######################################################################## git_archive () { - git archive --prefix="$name-reduced/" HEAD -- $paths | \ + git archive --worktree-attributes --prefix="$name-reduced/" HEAD -- $paths | \ tar -C "$extractdir" -x } @@ -85,6 +101,7 @@ if [ -n "$basehash" ]; then # Clear out the working tree pushd "$extractdir" git ls-files | xargs rm -v + find . -type d -empty -delete popd else # Create a repo to hold this package's history |