summaryrefslogtreecommitdiff
path: root/presentations/taler-mdb-36c3/.template/mk_gitignore.sh
diff options
context:
space:
mode:
authorDominik Hofer <dominik.hofer@bfh.ch>2020-01-21 15:39:44 +0100
committerDominik Hofer <dominik.hofer@bfh.ch>2020-01-21 15:39:44 +0100
commit5f3d96d87767eb177d7dd5d1f5f8a4b81527b848 (patch)
tree5ff1cd163c7246775a2fea009b03dd41896ea4c7 /presentations/taler-mdb-36c3/.template/mk_gitignore.sh
parentb791c2e43ef7e2650e0fc47642a9c5ccef77391d (diff)
downloadmarketing-5f3d96d87767eb177d7dd5d1f5f8a4b81527b848.tar.gz
marketing-5f3d96d87767eb177d7dd5d1f5f8a4b81527b848.tar.bz2
marketing-5f3d96d87767eb177d7dd5d1f5f8a4b81527b848.zip
Presentation 36C3 taler-mdb
Diffstat (limited to 'presentations/taler-mdb-36c3/.template/mk_gitignore.sh')
-rwxr-xr-xpresentations/taler-mdb-36c3/.template/mk_gitignore.sh81
1 files changed, 81 insertions, 0 deletions
diff --git a/presentations/taler-mdb-36c3/.template/mk_gitignore.sh b/presentations/taler-mdb-36c3/.template/mk_gitignore.sh
new file mode 100755
index 0000000..46e41dd
--- /dev/null
+++ b/presentations/taler-mdb-36c3/.template/mk_gitignore.sh
@@ -0,0 +1,81 @@
+#!/bin/bash
+# generate variables.txt
+# Author: Andreas HABEGGER <andreas.habegger>
+# Date : 2017
+# Based on an idea by Albert Reiner.
+
+_FILE_PERM=644
+
+OUTFILE=".gitignore" # Name of the file to generate.
+
+OUTFILE="${_DESTINATION_DIR}/${OUTFILE}"
+
+# -----------------------------------------------------------
+# 'Here document containing the body of the generated script.
+(
+cat <<'EOF'
+# Ignore Linux temp files
+*~
+
+# Ignore Mac specific files
+.DS_Store
+
+# Ignore Windows temp files
+*.log
+*.temp
+*.tmp
+
+# Ignore NFS lock ressources
+.nfs*
+
+# Ignore Snapshots directories
+.snapshot
+
+#ignore all autobuild directories
+_*
+
+# ignore Emacs temp buffers
+\#*
+\.#*
+
+# ignore TAR archives
+*.tar
+
+# exclude vc version-check scripts
+vc.tex
+temp/
+*.log
+
+# do not track merge or other orig cpy files
+*.orig
+
+# exclude files other than *.c from exsrc
+exsrc/*
+!exsrc/*.c
+!exsrc/*.h
+!exsrc/*.cpp
+!exsrc/*.hpp
+!exsrc/*.hh
+!exsrc/*.cc
+
+# Ignore all sample files
+sample-*
+sample_lecture*
+
+EOF
+) > $OUTFILE
+# -----------------------------------------------------------
+
+# Quoting the 'limit string' prevents variable expansion
+# within the body of the above 'here document.'
+# This permits outputting literal strings in the output file.
+
+if [ -f "$OUTFILE" ]
+then
+ chmod ${_FILE_PERM} ${OUTFILE}
+else
+ echo "Problem in creating file: \"$OUTFILE\""
+fi
+
+
+exit 0