Add license support to REAMDE-template.md and update.sh
This commit is contained in:
parent
12ad08d9e6
commit
17fbc4c986
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
%%TAGS%%
|
||||
|
||||
%%CONTENT%%
|
||||
%%CONTENT%%%%LICENSE%%
|
||||
|
||||
# User Feedback
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,11 @@ compile your project into a jar from a container:
|
|||
This will build your project into a jar file located in your project's
|
||||
`target/uberjar` directory.
|
||||
|
||||
# License
|
||||
|
||||
View [license information](http://clojure.org/license)
|
||||
for the software contained in this image.
|
||||
|
||||
# User Feedback
|
||||
|
||||
## Issues
|
||||
|
|
|
|||
|
|
@ -79,6 +79,11 @@ Alternatively, you can build for multiple platforms at once:
|
|||
> done
|
||||
> done
|
||||
|
||||
# License
|
||||
|
||||
View [license information](http://golang.org/LICENSE)
|
||||
for the software contained in this image.
|
||||
|
||||
# User Feedback
|
||||
|
||||
## Issues
|
||||
|
|
|
|||
|
|
@ -36,6 +36,11 @@ Docker image directly:
|
|||
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp hylang:0.10 hy your-daemon-or-script.hy
|
||||
|
||||
# License
|
||||
|
||||
View [license information](https://github.com/hylang/hy/blob/master/LICENSE)
|
||||
for the software contained in this image.
|
||||
|
||||
# User Feedback
|
||||
|
||||
## Issues
|
||||
|
|
|
|||
|
|
@ -35,6 +35,11 @@ Perl Docker image directly:
|
|||
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp perl:5.20 perl your-daemon-or-script.pl
|
||||
|
||||
# License
|
||||
|
||||
View [license information](http://dev.perl.org/licenses/)
|
||||
for the software contained in this image.
|
||||
|
||||
# User Feedback
|
||||
|
||||
## Issues
|
||||
|
|
|
|||
|
|
@ -70,6 +70,11 @@ do the following:
|
|||
|
||||
docker run -it --rm --name my-apache-php-app -v "$(pwd)":/var/www/html php:5.6-apache
|
||||
|
||||
# License
|
||||
|
||||
View [license information](http://php.net/license/)
|
||||
for the software contained in this image.
|
||||
|
||||
# User Feedback
|
||||
|
||||
## Issues
|
||||
|
|
|
|||
|
|
@ -41,6 +41,11 @@ Ruby Docker image directly:
|
|||
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp ruby:2.1.2 ruby your-daemon-or-script.rb
|
||||
|
||||
# License
|
||||
|
||||
View [license information](https://www.ruby-lang.org/en/about/license.txt)
|
||||
for the software contained in this image.
|
||||
|
||||
# User Feedback
|
||||
|
||||
## Issues
|
||||
|
|
|
|||
|
|
@ -44,6 +44,10 @@ for repo in "${repos[@]}"; do
|
|||
else
|
||||
mailingList=' '
|
||||
fi
|
||||
license="$(cat "$repo/license.md" 2>/dev/null || true)"
|
||||
if [ "$license" ]; then
|
||||
license=$'\n\n''# License'$'\n\n'"$license"
|
||||
fi
|
||||
|
||||
cp -v README-template.md "$repo/README.md"
|
||||
|
||||
|
|
@ -53,6 +57,9 @@ for repo in "${repos[@]}"; do
|
|||
echo ' CONTENT => '"$repo"'/README-content.md'
|
||||
replace_field "$repo" 'CONTENT' "$(cat "$repo/README-content.md")"
|
||||
|
||||
echo ' LICENSE => '"$repo"'/license.md'
|
||||
replace_field "$repo" 'LICENSE' "$license"
|
||||
|
||||
echo ' MAILING_LIST => "'"$mailingList"'"'
|
||||
replace_field "$repo" 'MAILING_LIST' "$mailingList" '\s*'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue