From: Michael Wallner Date: Mon, 5 Oct 2015 07:42:00 +0000 (+0200) Subject: add mdref support X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ae0bafe7e68c2efb8f11a1cc98582c99898c96eb;p=m6w6%2Frepo-template add mdref support --- diff --git a/init b/init index cbf6dc0..faf9cac 100755 --- a/init +++ b/init @@ -4,6 +4,13 @@ export REPO=$(basename $(pwd) .git) +if test $(uname) = "Linux" +then + MKTEMP=mktemp +else + MKTEMP="mktemp -t repo-template" +fi + while test $# -gt 0 do export "$1" @@ -15,22 +22,27 @@ do SRCFILE=$(dirname -- $0)/presets/$FILE case $FILE in .|..) - echo $FILE continue ;; composer.json) test "${COMPOSER+set}" = "" && continue - SRCFILE=$(mktemp) + SRCFILE=$($MKTEMP) php -d variables_order=E $(dirname -- $0)/presets/composer.json >$SRCFILE ;; package.xml|CREDITS|config.*|Makefile.frag) test "${PECL+set}" = "" && continue - SRCFILE=$(mktemp) + SRCFILE=$($MKTEMP) + php -d variables_order=E $(dirname -- $0)/presets/$FILE >$SRCFILE + ;; + README.md|LICENSE) + SRCFILE=$($MKTEMP) php -d variables_order=E $(dirname -- $0)/presets/$FILE >$SRCFILE ;; - README.md) - SRCFILE=$(mktemp) - php -d variables_order=E $(dirname -- $0)/presets/README.md >$SRCFILE + mdref.mdref) + test "${MDREF+set}" = "" && continue + SRCFILE=$($MKTEMP) + php -d variables_order=E $(dirname -- $0)/presets/$FILE >$SRCFILE + FILE=$MDREF.mdref ;; *) ;; diff --git a/presets/LICENSE b/presets/LICENSE index f52c89a..b397375 100644 --- a/presets/LICENSE +++ b/presets/LICENSE @@ -1,3 +1,24 @@ + + +Permission is hereby granted by the holder(s) of copyright or other legal +privileges, author(s) or assembler(s), and contributor(s) of this work, to any +person who obtains a copy of this work in any form, to reproduce, modify, +distribute, publish, sell, sublicense, use, and/or otherwise deal in the +licensed material without restriction, provided the following conditions are +met: + +Redistributions, modified or unmodified, in whole or in part, must retain +applicable copyright and other legal privilege notices, the above license +notice, these conditions, and the following disclaimer. + +NO WARRANTY OF ANY KIND IS IMPLIED BY, OR SHOULD BE INFERRED FROM, THIS LICENSE +OR THE ACT OF DISTRIBUTION UNDER THE TERMS OF THIS LICENSE, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, +AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, ASSEMBLERS, OR HOLDERS OF +COPYRIGHT OR OTHER LEGAL PRIVILEGE BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER +LIABILITY, WHETHER IN ACTION OF CONTRACT, TORT, OR OTHERWISE ARISING FROM, OUT +OF, OR IN CONNECTION WITH THE WORK OR THE USE OF OR OTHER DEALINGS IN THE WORK. + Copyright (c) 2015, Michael Wallner . All rights reserved. @@ -20,3 +41,4 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/presets/README.md b/presets/README.md index a61d5c0..3dfdcd1 100644 --- a/presets/README.md +++ b/presets/README.md @@ -1,20 +1,28 @@ # + + +Sources for https://mdref.m6w6.name/ + + [![Build Status](https://travis-ci.org/m6w6/.svg?branch=master)](https://travis-ci.org/m6w6/) ... ## Documentation + See the [online markdown reference](https://mdref.m6w6.name/). Known issues are listed in [BUGS](./BUGS) and future ideas can be found in [TODO](./TODO). + ## Installing + ### Composer @@ -84,7 +92,9 @@ Check out the latest [releases](./releases) or the bundled ## License - is licensed under the 2-Clause-BSD license, which can be found in + is licensed under the +Open Works 2-Clause-BSD +license, which can be found in the accompanying [LICENSE](./LICENSE) file. ## Contributing diff --git a/presets/mdref.mdref b/presets/mdref.mdref new file mode 100644 index 0000000..0a723f8 --- /dev/null +++ b/presets/mdref.mdref @@ -0,0 +1,2 @@ + +https://github.com/m6w6//edit/master/%s.md