From 4eac6b598ab636faf9a335dc2809217dacfbd433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20Restori?= Date: Wed, 12 Sep 2012 22:02:09 +0200 Subject: [PATCH] Add the MIT licence --- .../WeatherStationLogger.ino | 23 +++++++++++ .../WeatherStationWeb/WeatherStationWeb.ino | 23 +++++++++++ latex/TM.tex | 40 ++++++++++++++++++- 3 files changed, 85 insertions(+), 1 deletion(-) diff --git a/arduino/WeatherStationLogger/WeatherStationLogger.ino b/arduino/WeatherStationLogger/WeatherStationLogger.ino index 2353216..0d3a6e8 100644 --- a/arduino/WeatherStationLogger/WeatherStationLogger.ino +++ b/arduino/WeatherStationLogger/WeatherStationLogger.ino @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Nathanaël Restori + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +*/ + #include #include #include "BMP085.h" diff --git a/arduino/WeatherStationWeb/WeatherStationWeb.ino b/arduino/WeatherStationWeb/WeatherStationWeb.ino index 81fbcf2..59f23b8 100644 --- a/arduino/WeatherStationWeb/WeatherStationWeb.ino +++ b/arduino/WeatherStationWeb/WeatherStationWeb.ino @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Nathanaël Restori + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +*/ + #include #include #include diff --git a/latex/TM.tex b/latex/TM.tex index e734ba0..1a9f3fc 100644 --- a/latex/TM.tex +++ b/latex/TM.tex @@ -7,6 +7,8 @@ \usepackage{caption} \usepackage{subcaption} \usepackage{appendix} +\usepackage{listings} +\usepackage{color} \usepackage[singletitle=true,citestyle=verbose-trad2,bibstyle=verbose,backend=biber,citepages=omit]{biblatex} \usepackage[hidelinks]{hyperref} \usepackage[acronym,toc,xindy]{glossaries} @@ -28,6 +30,14 @@ \renewcommand{\appendixtocname}{Annexes} \renewcommand{\appendixpagename}{Annexes} +\lstset{ + language=C++, + basicstyle=\footnotesize, + numbers=left, + numberstyle=\tiny\color{gray}, + numbersep=7pt, +} + \begin{document} \input{couverture.tex} @@ -61,7 +71,7 @@ Les deux dernière libertés demandent la mise à disposition du \gls{code sourc On retrouve aussi le terme \enquote{\emph{open source}}, mais celui-ci est ambigu : celui-ci pouvant désigner un logiciel des les sources sont disponibles mais non réutilisables ou redistribuable ou désigner un logiciel libre (comme définit par \gls{OSI}). -Les sources du logiciels sont soumis à des licences spécifiques garantissant ces libertés. Les plus connues sont la \gls{GPL}, la \gls{BSD} ou la MIT. +Les sources du logiciels sont soumis à des licences spécifiques garantissant ces libertés. Les plus connues sont la \gls{GPL}, la \gls{BSD} ou la MIT (une copie de cette dernière est disponible à l'annexe \ref{chap:mit}). Quelques logiciels libres connus sont Firefox et Thunderbird, Linux, OpenOffice.org et LibreOffice. @@ -139,4 +149,32 @@ J'ai vite été confronté a quelque limitations : la mémoire de l'Arduino ne p \appendixpage \addappheadtotoc +\chapter{Licence MIT} +\label{chap:mit} + +\begin{lstlisting} +/* + Copyright (C) + + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +*/ +\end{lstlisting} + \end{document}