Skip to content

Commit

Permalink
Added license file and updated scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Mar 31, 2014
1 parent 5f10fa2 commit 8aedc22
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2013-2014, "Duncan McGreggor" <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
15 changes: 12 additions & 3 deletions bin/create-tool
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ fill-tool-var () {
mv $temp $dest
}

add-license () {
awk '{printf "# %s\n", $0}' < LICENSE|sed -e 's/[ ]*$//g'
}

fill-templates () {
cp $tooltemplate $dest
fill-lfetool-files
Expand All @@ -36,13 +40,18 @@ fill-templates () {
fill-service-files
fill-yaws-files
fill-yaws-bootstrap-files
echo "`add-license`" > $temp
cat $dest>>$temp
mv $temp $dest
}

compress-tool () {
data=`gzip --best --stdout $dest|base64`
cat << ENDSCRIPT >$temp
#!/usr/bin/env bash
echo "#!/usr/bin/env bash" > $temp
echo >> $temp
echo "`add-license`" >> $temp
echo >> $temp
cat << ENDSCRIPT >> $temp
version=$version
lfetool="$data"
Expand Down

0 comments on commit 8aedc22

Please sign in to comment.