Merge branch 'yazug-ignore_generated_example_files'

* yazug-ignore_generated_example_files:
  Guile gitignore and consistent naming in examples
  Add language specific files to gitignore
  gitignore for python
  Add generated director header files to .ignore
  fix typo of Perl in .gitignore
  Add some generated example files to the .gitignore list
This commit is contained in:
William S Fulton 2015-04-26 00:23:24 +01:00
commit 605b95d706
5 changed files with 62 additions and 37 deletions

91
.gitignore vendored
View file

@ -101,32 +101,11 @@ Doc/Manual/SWIGDocumentation.html
Doc/Manual/SWIGDocumentation.pdf Doc/Manual/SWIGDocumentation.pdf
Doc/Manual/*.book Doc/Manual/*.book
# Test Suite Generated Files # SWIG common generated files
Examples/test-suite/allegrocl/*/
Examples/test-suite/cffi/*/
Examples/test-suite/chicken/*/
Examples/test-suite/clisp/*/
Examples/test-suite/csharp/*/
Examples/test-suite/d/*/
Examples/test-suite/go/*/
Examples/test-suite/guile/*/
Examples/test-suite/java/*/
Examples/test-suite/javascript/*/
Examples/test-suite/lua/*/
Examples/test-suite/mzscheme/*/
Examples/test-suite/ocaml/*/
Examples/test-suite/octave/*/
Examples/test-suite/perl5/*/
Examples/test-suite/php/*/
Examples/test-suite/pike/*/
Examples/test-suite/python/*/
Examples/test-suite/r/*/
Examples/test-suite/ruby/*/
Examples/test-suite/scilab/*/
Examples/test-suite/tcl/*/
Examples/test-suite/uffi/*/
*_wrap.c *_wrap.c
*_wrap.cpp
*_wrap.cxx *_wrap.cxx
*_wrap.h
*-gypcopy.cxx *-gypcopy.cxx
# Scratch directories # Scratch directories
@ -137,27 +116,73 @@ Examples/scratch
########## Language specific files ########## ########## Language specific files ##########
# C# generated files # C#
*_runme.exe.mdb Examples/test-suite/csharp/*/
*_runme.exe *runme.exe.mdb
*runme.exe
Examples/csharp/*/*.cs
!Examples/csharp/*/runme.cs
# Go generated files # D
Examples/test-suite/d/*/
Examples/d/**/example.d
Examples/d/**/example_im.d
Examples/d/**/runme
# Go
*.[5689] *.[5689]
*_gc.c *_gc.c
# Javascript generated files # Guile
Examples/guile/*/my-guile
# Java
Examples/test-suite/java/*/
Examples/java/*/*.java
!Examples/java/*/runme.java
# Javascript
Examples/test-suite/javascript/*/
*.gyp *.gyp
# Octave generated files # Octave
swigexample*.oct swigexample*.oct
Examples/test-suite/octave/*.oct Examples/test-suite/octave/*.oct
# Python generated files, based on: # Perl5
# https://github.com/github/gitignore/blob/master/Python.gitignore Examples/test-suite/perl5/*.pm
Examples/perl5/*/*.pm
# PHP
Examples/test-suite/php/php_*.h
Examples/test-suite/php/*.php
!Examples/test-suite/php/*runme.php
!Examples/test-suite/php/skel.php
Examples/php/*/php_*.h
Examples/php/*/example.php
# Python
# Based on https://github.com/github/gitignore/blob/master/Python.gitignore
*.py[cod] *.py[cod]
*/__pycache__/ */__pycache__/
/__pycache__/ /__pycache__/
Examples/test-suite/python/*.py
!Examples/test-suite/python/*runme.py
Examples/python/*/example.py
Examples/python/**/bar.py
Examples/python/**/base.py
Examples/python/**/foo.py
Examples/python/**/spam.py
# Scilab generated files # R
Examples/test-suite/r/*.R
Examples/test-suite/r/*.Rout
!Examples/test-suite/r/*runme.R
Examples/r/*/example.R
Examples/r/*/*.Rout
Examples/r/*/.RData
# Scilab
Examples/test-suite/scilab/*/
loader.sce loader.sce

View file

@ -1,7 +1,7 @@
TOP = ../.. TOP = ../..
SWIG = $(TOP)/../preinst-swig SWIG = $(TOP)/../preinst-swig
SRCS = matrix.c vector.c SRCS = matrix.c vector.c
TARGET = matrix TARGET = my-guile
INTERFACE = example.i INTERFACE = example.i
check: build check: build

View file

@ -6,7 +6,7 @@ type the following :
Alternatively, use the command-line: Alternatively, use the command-line:
./matrix -e do-test -s runme.scm ./my-guile -e do-test -s runme.scm
Or, if your operating system is spiffy enough: Or, if your operating system is spiffy enough:

View file

@ -1,7 +1,7 @@
TOP = ../.. TOP = ../..
SWIG = $(TOP)/../preinst-swig SWIG = $(TOP)/../preinst-swig
SRCS = example.c SRCS = example.c
TARGET = port TARGET = my-guile
INTERFACE = example.i INTERFACE = example.i
check: build check: build

View file

@ -1,2 +1,2 @@
This example illustrates the translation from Scheme file ports to This example illustrates the translation from Scheme file ports to
temporary FILE streams. Read the source and run ./port -s runme.scm temporary FILE streams. Read the source and run ./my-guile -s runme.scm