Skip to content

Commit

Permalink
Merge pull request #9541 from garborg/gen
Browse files Browse the repository at this point in the history
Add .gitignore for new packages
  • Loading branch information
jakebolewski committed Jan 4, 2015
2 parents e34aad8 + 5b643ec commit dafa9c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions base/pkg/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function package(
Generate.entrypoint(pkg,force=force)
Generate.tests(pkg,force=force)
Generate.travis(pkg,force=force)
Generate.gitignore(pkg,force=force)

msg = """
$pkg.jl $(isnew ? "generated" : "regenerated") files.
Expand Down Expand Up @@ -153,6 +154,15 @@ function travis(pkg::AbstractString; force::Bool=false)
end
end

function gitignore(pkg::AbstractString; force::Bool=false)
genfile(pkg,".gitignore",force) do io
print(io, """
*.jl.cov
*.jl.mem
""")
end
end

function entrypoint(pkg::AbstractString; force::Bool=false)
genfile(pkg,"src/$pkg.jl",force) do io
print(io, """
Expand Down

0 comments on commit dafa9c8

Please sign in to comment.