summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-09-09 12:42:18 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-09-09 12:42:18 +0200
commitb147123070e5d7418fe67e315a53599cfde38d58 (patch)
treeb4ed260a622235d320310094d329fc6604a47345 /scripts
parent7f98e949d4922ba2109304bd4cabe9578a8062fb (diff)
downloadvim-polyglot-b147123070e5d7418fe67e315a53599cfde38d58.tar.gz
vim-polyglot-b147123070e5d7418fe67e315a53599cfde38d58.zip
Ensure some files are compied from each package
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build b/scripts/build
index 77d71cdd..c0a80b4f 100755
--- a/scripts/build
+++ b/scripts/build
@@ -491,6 +491,7 @@ def extract(packages)
output = []
packages.map do |package|
+ copied_something = false
if !package["remote"]
next
end
@@ -516,14 +517,20 @@ def extract(packages)
if package["extract_in_after"] == true
target = "after/#{target}"
end
+ copied_something = true
copy_file(package["name"], "#{subtree}#{p}", target)
end
end
elsif File.exist?(subpath)
+ copied_something = true
copy_file(package["name"], subpath, subdir)
end
end
+ if !copied_something
+ raise StandardError.new("No files in: #{package["name"]}")
+ end
+
if repo == "vim/vim"
next
end