Skip to content

Add make targed generate-license & generate-gitignore + Update #12682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ help:
@echo " - fomantic build fomantic files"
@echo " - generate run \"go generate\""
@echo " - fmt format the Go code"
@echo " - generate-license update license files"
@echo " - generate-gitignore update gitignore files"
@echo " - generate-swagger generate the swagger spec from code comments"
@echo " - swagger-validate check if the swagger spec is valid"
@echo " - golangci-lint run golangci-lint linter"
Expand Down Expand Up @@ -668,6 +670,15 @@ update-translations:
mv ./translations/*.ini ./options/locale/
rmdir ./translations

.PHONY: generate-license
generate-license:
GO111MODULE=on $(GO) run build/generate-licenses.go

.PHONY: generate-gitignore
generate-gitignore:
GO111MODULE=on $(GO) run build/generate-gitignores.go


.PHONY: generate-images
generate-images:
npm install --no-save --no-package-lock xmldom fabric imagemin-zopfli
Expand Down
3 changes: 3 additions & 0 deletions options/gitignore/Android
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,6 @@ lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

# Android Profiling
*.hprof
2 changes: 2 additions & 0 deletions options/gitignore/Autotools
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Makefile.in
/py-compile
/test-driver
/ylwrap
.deps/
.dirstamp

# http://www.gnu.org/software/autoconf

Expand Down
19 changes: 18 additions & 1 deletion options/gitignore/Concrete5
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# ignore the error log and .htaccess and others
error_log
.htaccess

# concrete5 5.6 specific

config/site.php
files/cache/*
files/tmp/*
.htaccess

# concrete5 5.7 specific

# ignore everything but the index.html
/application/files/*
!/application/files/index.html

# ignore updates folder
/updates/*

# ignore sitemap.xml
/sitemap.xml
10 changes: 10 additions & 0 deletions options/gitignore/Coq
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ lia.cache
nia.cache
nlia.cache
nra.cache

# generated timing files
*.timing.diff
*.v.after-timing
*.v.before-timing
*.v.timing
time-of-build-after.log
time-of-build-before.log
time-of-build-both.log
time-of-build-pretty.log
3 changes: 3 additions & 0 deletions options/gitignore/Dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ doc/api/
*.js_
*.js.deps
*.js.map

.flutter-plugins
.flutter-plugins-dependencies
8 changes: 4 additions & 4 deletions options/gitignore/Drupal
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@

# Ignore drupal core (if not versioning drupal sources)
/core
/vendor
/modules/README.txt
/profiles/README.txt
/themes/README.txt
/sites/README.txt
/sites/example.sites.php
/sites/example.settings.local.php
/sites/development.services.yml
/themes/README.txt
/vendor
/.csslintrc
/.editorconfig
/.eslintignore
/.eslintrc.json
/.gitattributes
/.ht.router.php
/.htaccess
/autoload.php
/composer.json
/composer.lock
/example.gitignore
/index.php
/INSTALL.txt
/LICENSE.txt
/README.txt
/robots.txt
Expand Down
4 changes: 4 additions & 0 deletions options/gitignore/Eclipse
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ local.properties
.cache-main
.scala_dependencies
.worksheet

# Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations:
#.project
4 changes: 3 additions & 1 deletion options/gitignore/Godot
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

# Godot-specific ignores
.import/
export.cfg
export_presets.cfg

# Imported translations (automatically generated from CSV files)
*.translation

# Mono-specific ignores
.mono/
data_*/
3 changes: 2 additions & 1 deletion options/gitignore/Gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.gradle
/build/
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting
Expand Down
41 changes: 33 additions & 8 deletions options/gitignore/JENKINS_HOME
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
#Learn more about Jenkins and JENKINS_HOME directory for which this file is intended.
# Learn more about Jenkins and JENKINS_HOME directory for which this file is
# intended.
#
# http://jenkins-ci.org/
# https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins
#
# Note: secret.key is purposefully not tracked by git. This should be backed up
# separately because configs may contain secrets which were encrypted using the
# secret.key. To back up secrets use 'tar -czf /tmp/secrets.tgz secret*' and
# save the file separate from your repository. If you want secrets backed up
# with configuration, then see the bottom of this file for an example.

#ignore all JENKINS_HOME except jobs directory, root xml config, and .gitignore file
# Ignore all JENKINS_HOME except jobs directory, root xml config, and
# .gitignore file.
/*
!/jobs
!/.gitignore
!/*.xml

#ignore all files in jobs subdirectories except for folders
#note: git doesn't track folders, only file content
# Ignore all files in jobs subdirectories except for folders.
# Note: git doesn't track folders, only file content.
jobs/**
!jobs/**/

#uncomment the following line to save next build numbers with config
# Uncomment the following line to save next build numbers with config.

#!jobs/**/nextBuildNumber

#exclude only config.xml files in repository subdirectories
# For performance reasons, we want to ignore builds in Jenkins jobs because it
# contains many tiny files on large installations. This can impact git
# performance when running even basic commands like 'git status'.
builds
indexing

# Exclude only config.xml files in repository subdirectories.
!config.xml

#don't track workspaces (when users build on the master)
# Don't track workspaces (when users build on the master).
jobs/**/*workspace

#as a result only settings and job config.xml files in JENKINS_HOME will be tracked by git
# Security warning: If secrets are included with your configuration, then an
# adversary will be able to decrypt all encrypted secrets within Jenkins
# config. Including secrets is a bad practice, but the example is included in
# case someone still wants it for convenience. Uncomment the following line to
# include secrets for decryption with repository configuration in Git.

#!/secret*

# As a result, only Jenkins settings and job config.xml files in JENKINS_HOME
# will be tracked by git.
2 changes: 1 addition & 1 deletion options/gitignore/JetBrains
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
Expand Down
6 changes: 6 additions & 0 deletions options/gitignore/Jigsaw
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# gitignore template for Jigsaw Static Site Generator
#
# website - https://jigsaw.tighten.co

# Ignore build folder
build_*
2 changes: 2 additions & 0 deletions options/gitignore/KiCad
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*.bak
*.bck
*.kicad_pcb-bak
*.kicad_sch-bak
*.kicad_prl
*.sch-bak
*~
_autosave-*
Expand Down
5 changes: 5 additions & 0 deletions options/gitignore/Metals
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generated Metals (Scala Language Server) files
# Reference: https://scalameta.org/metals/
.metals/
.bloop/
project/metals.sbt
13 changes: 11 additions & 2 deletions options/gitignore/Node
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ build/Release
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo
Expand Down Expand Up @@ -74,9 +74,11 @@ typings/

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
Expand Down Expand Up @@ -105,3 +107,10 @@ dist

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
Loading