From 4dc851244dbe76acd6f2f4043cabbab406f73990 Mon Sep 17 00:00:00 2001
From: Martine Lenders <mlenders@inf.fu-berlin.de>
Date: Fri, 4 Dec 2015 01:12:15 +0100
Subject: [PATCH] pkg: unify git paradigms for packages

---
 .gitignore                   | 13 -------------
 pkg/ccn-lite/.gitignore      |  1 +
 pkg/cmsis-dsp/.gitignore     |  1 +
 pkg/libcoap/.gitattributes   |  6 ------
 pkg/libcoap/.gitignore       |  2 +-
 pkg/micro-ecc/.gitattributes |  3 ---
 pkg/micro-ecc/.gitignore     |  2 +-
 pkg/microcoap/.gitattributes |  4 ----
 pkg/microcoap/.gitignore     |  1 +
 pkg/oonf_api/.gitattributes  |  5 -----
 pkg/oonf_api/.gitignore      |  2 +-
 pkg/openwsn/.gitattributes   |  6 ------
 pkg/openwsn/.gitignore       |  2 +-
 pkg/relic/.gitignore         |  1 +
 pkg/tlsf/.gitattributes      |  2 --
 pkg/tlsf/.gitignore          |  1 +
 pkg/wakaama/.gitignore       |  1 +
 17 files changed, 10 insertions(+), 43 deletions(-)
 create mode 100644 pkg/ccn-lite/.gitignore
 create mode 100644 pkg/cmsis-dsp/.gitignore
 delete mode 100644 pkg/libcoap/.gitattributes
 delete mode 100644 pkg/micro-ecc/.gitattributes
 delete mode 100644 pkg/microcoap/.gitattributes
 create mode 100644 pkg/microcoap/.gitignore
 delete mode 100644 pkg/oonf_api/.gitattributes
 delete mode 100644 pkg/openwsn/.gitattributes
 create mode 100644 pkg/relic/.gitignore
 delete mode 100644 pkg/tlsf/.gitattributes
 create mode 100644 pkg/wakaama/.gitignore

diff --git a/.gitignore b/.gitignore
index 31f7912bb8..9ca29895e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,19 +38,6 @@ _sketches.cpp
 # local override files
 Makefile.local
 
-# downloaded package sources
-pkg/ccn-lite/ccn-lite
-pkg/cmsis-dsp/cmsis-dsp
-pkg/libcoap/libcoap
-pkg/libfixmath/libfixmath
-pkg/microcoap/microcoap
-pkg/micro-ecc/micro-ecc
-pkg/oonf_api/oonf_api
-pkg/openwsn/openwsn
-pkg/relic/relic
-pkg/tlsf/tlsf
-pkg/wakaama/wakaama
-
 # Vagrant
 .vagrant
 
diff --git a/pkg/ccn-lite/.gitignore b/pkg/ccn-lite/.gitignore
new file mode 100644
index 0000000000..72a81c4664
--- /dev/null
+++ b/pkg/ccn-lite/.gitignore
@@ -0,0 +1 @@
+/ccn-lite
diff --git a/pkg/cmsis-dsp/.gitignore b/pkg/cmsis-dsp/.gitignore
new file mode 100644
index 0000000000..12a55487a7
--- /dev/null
+++ b/pkg/cmsis-dsp/.gitignore
@@ -0,0 +1 @@
+/cmsis-dsp
diff --git a/pkg/libcoap/.gitattributes b/pkg/libcoap/.gitattributes
deleted file mode 100644
index 088d50c804..0000000000
--- a/pkg/libcoap/.gitattributes
+++ /dev/null
@@ -1,6 +0,0 @@
-# Ignore whitespace errors inside these patch files by regarding them as binary.
-0001-Add-RIOT-Makefile.patch binary
-0002-Add-config.h.patch binary
-0003-Remove-two-example-programs-in-root.patch binary
-0004-Eliminate-some-compiler-warnings-and-errors.patch binary
-0005-fix-old-style-function-declarations.patch binary
diff --git a/pkg/libcoap/.gitignore b/pkg/libcoap/.gitignore
index 284bb3900b..5c84315941 100644
--- a/pkg/libcoap/.gitignore
+++ b/pkg/libcoap/.gitignore
@@ -1 +1 @@
-libcoap
+/libcoap
diff --git a/pkg/micro-ecc/.gitattributes b/pkg/micro-ecc/.gitattributes
deleted file mode 100644
index 48d75058c7..0000000000
--- a/pkg/micro-ecc/.gitattributes
+++ /dev/null
@@ -1,3 +0,0 @@
-# Ignore whitespace errors inside these patch files by regarding them as binary.
-0001-Add-RIOT-Makefile.patch binary
-0002-Include-RIOT-Hardware-RNG-interface.patch binary
diff --git a/pkg/micro-ecc/.gitignore b/pkg/micro-ecc/.gitignore
index 41c895140f..52dfbcd45c 100644
--- a/pkg/micro-ecc/.gitignore
+++ b/pkg/micro-ecc/.gitignore
@@ -1 +1 @@
-micro-ecc
+/micro-ecc
diff --git a/pkg/microcoap/.gitattributes b/pkg/microcoap/.gitattributes
deleted file mode 100644
index c4ca7223ea..0000000000
--- a/pkg/microcoap/.gitattributes
+++ /dev/null
@@ -1,4 +0,0 @@
-# Ignore whitespace errors inside these patch files by regarding them as binary.
-0001-Remove-unneeded-.c-files.patch binary
-0002-Add-RIOT-Makefile.patch binary
-0003-change-flag-from-DEBUG-to-MICROCOAP_DEBUG.patch binary
diff --git a/pkg/microcoap/.gitignore b/pkg/microcoap/.gitignore
new file mode 100644
index 0000000000..25dda219d2
--- /dev/null
+++ b/pkg/microcoap/.gitignore
@@ -0,0 +1 @@
+/microcoap
diff --git a/pkg/oonf_api/.gitattributes b/pkg/oonf_api/.gitattributes
deleted file mode 100644
index bcf2afc064..0000000000
--- a/pkg/oonf_api/.gitattributes
+++ /dev/null
@@ -1,5 +0,0 @@
-# Ignore whitespace errors inside these patch files by regarding them as binary.
-0001-add-RIOT-support.patch binary
-0002-port-tests-to-riot.patch binary
-0003-port-example-to-riot.patch binary
-0004-fix-conflicting-types.patch binary
diff --git a/pkg/oonf_api/.gitignore b/pkg/oonf_api/.gitignore
index d10449eeb0..9785e26089 100644
--- a/pkg/oonf_api/.gitignore
+++ b/pkg/oonf_api/.gitignore
@@ -1 +1 @@
-oonf_api/
+/oonf_api
diff --git a/pkg/openwsn/.gitattributes b/pkg/openwsn/.gitattributes
deleted file mode 100644
index 0e8c6e8e81..0000000000
--- a/pkg/openwsn/.gitattributes
+++ /dev/null
@@ -1,6 +0,0 @@
-# Ignore whitespace errors inside these patch files by regarding them as binary.
-0001-Add-RIOT-Makefiles.patch binary
-0002-Add-RIOT-adaption.patch binary
-0003-Fix-old-style-definitions.patch binary
-0004-provide-openserial-dummies.patch binary
-0005-fixes-to-RIOT-adaption.patch binary
diff --git a/pkg/openwsn/.gitignore b/pkg/openwsn/.gitignore
index 4caae7105a..3a3f6627cb 100644
--- a/pkg/openwsn/.gitignore
+++ b/pkg/openwsn/.gitignore
@@ -1 +1 @@
-openwsn
\ No newline at end of file
+/openwsn
diff --git a/pkg/relic/.gitignore b/pkg/relic/.gitignore
new file mode 100644
index 0000000000..508396776c
--- /dev/null
+++ b/pkg/relic/.gitignore
@@ -0,0 +1 @@
+/relic
diff --git a/pkg/tlsf/.gitattributes b/pkg/tlsf/.gitattributes
deleted file mode 100644
index 8ee56e791e..0000000000
--- a/pkg/tlsf/.gitattributes
+++ /dev/null
@@ -1,2 +0,0 @@
-# Ignore whitespace errors inside these patch files by regarding them as binary.
-patch.txt binary
diff --git a/pkg/tlsf/.gitignore b/pkg/tlsf/.gitignore
index 58a9b88df5..f03bec72a2 100644
--- a/pkg/tlsf/.gitignore
+++ b/pkg/tlsf/.gitignore
@@ -1 +1,2 @@
 /tlsf-*.zip
+/tlsf
diff --git a/pkg/wakaama/.gitignore b/pkg/wakaama/.gitignore
new file mode 100644
index 0000000000..936ad44df2
--- /dev/null
+++ b/pkg/wakaama/.gitignore
@@ -0,0 +1 @@
+/wakaama
-- 
GitLab