Add license support to REAMDE-template.md and update.sh

This commit is contained in:
Tianon Gravi 2014-09-17 23:21:59 -06:00
parent 12ad08d9e6
commit 17fbc4c986
8 changed files with 38 additions and 1 deletions

View File

@ -2,7 +2,7 @@
%%TAGS%%
%%CONTENT%%
%%CONTENT%%%%LICENSE%%
# User Feedback

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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*'