Add dist to .gitignore.

Exclude hidden files from standalone zip.
This commit is contained in:
Lee Byrd & Christian Williams 2010-06-25 10:07:08 -07:00
parent ed80a0cad7
commit 7a69d64669
2 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea/
.svn/
lib/jasmine-*.js
dist/

View File

@ -147,10 +147,12 @@ jasmine.version_= {
FileUtils.cp(File.join(root, src), File.join(lib_dir, dest))
end
dist = File.join(root, 'dist')
FileUtils.rm_r dist if File.exists?(dist)
Dir.mkdir(dist)
exec "cd #{temp_dir} && zip -r #{File.join(dist, "jasmine-standalone-#{jasmine_version}.zip")} ."
dist_dir = File.join(root, 'dist')
zip_file_name = File.join(dist_dir, "jasmine-standalone-#{jasmine_version}.zip")
puts "Zipping Example Project and moving to #{zip_file_name}"
FileUtils.rm_r dist_dir if File.exists?(dist_dir)
Dir.mkdir(dist_dir)
exec "cd #{temp_dir} && zip -r #{zip_file_name} . -x .[a-zA-Z0-9]*"
end