Browse Source

Remove obsolete tfkit.mk

Alois Mahdal 9 years ago
parent
commit
e4c07d4d3c
1 changed files with 0 additions and 57 deletions
  1. 0
    57
      tfkit.mk

+ 0
- 57
tfkit.mk View File

@@ -1,57 +0,0 @@
1
-# Makefile module to deploy tfkit
2
-#
3
-# Will add bin/tfkit_init utility, and use it to guess URI to tfkit.git,
4
-# and clone tfkit to current directory.
5
-#
6
-# Adds targets: test to run tfkit tests, tfkit to deploy tfkit, tfkit_update to
7
-# pull tfkit updates, and tfkit_delete to remove the tfkit code.
8
-#
9
-# NOTE: Do not edit this file in your project directory as it will overwrite
10
-#       itself when you call tfkit_update!!!
11
-
12
-
13
-test: tfkit
14
-	@tfkit/runtests
15
-
16
-tfkit: bin/tfkit_init
17
-	@bin/tfkit_init
18
-
19
-tfkit_delete:
20
-	@rm -rf tfkit
21
-	@rm -f bin/tfkit_init
22
-	@rmdir bin 2>/dev/null || true
23
-
24
-bin/tfkit_init:
25
-	@mkdir -p bin
26
-	@echo '#!/bin/sh' >bin/tfkit_init
27
-	@echo '' >>bin/tfkit_init
28
-	@echo 'die() {' >>bin/tfkit_init
29
-	@echo '    echo "$$1" >&2' >>bin/tfkit_init
30
-	@echo '    exit 3' >>bin/tfkit_init
31
-	@echo '}' >>bin/tfkit_init
32
-	@echo '' >>bin/tfkit_init
33
-	@echo 'if test -d tfkit/.git;' >>bin/tfkit_init
34
-	@echo 'then' >>bin/tfkit_init
35
-	@echo '    exit 0' >>bin/tfkit_init
36
-	@echo 'else' >>bin/tfkit_init
37
-	@echo '' >>bin/tfkit_init
38
-	@echo '    origin=""' >>bin/tfkit_init
39
-	@echo '    git remote | grep -q origin && origin=origin' >>bin/tfkit_init
40
-	@echo '    test $$(git remote | wc -l) -eq 1 && origin=$$(git remote)' >>bin/tfkit_init
41
-	@echo '    test -n "$$origin" || die "could not guess remote name"' >>bin/tfkit_init
42
-	@echo '' >>bin/tfkit_init
43
-	@echo '' >>bin/tfkit_init
44
-	@echo '    uri=$$(git remote -v | grep "^$$origin.*(fetch)" | tr $$"\t" " " | cut -d\  -f2)' >>bin/tfkit_init
45
-	@echo '    tfkit_uri=$$(dirname $$uri)/tfkit.git' >>bin/tfkit_init
46
-	@echo '' >>bin/tfkit_init
47
-	@echo '    git clone $$tfkit_uri || die "failed to clone tfkit"' >>bin/tfkit_init
48
-	@echo '' >>bin/tfkit_init
49
-	@echo 'fi' >>bin/tfkit_init
50
-	@chmod +x bin/tfkit_init
51
-
52
-tfkit_update: tfkit
53
-	@cd tfkit
54
-	@git -C tfkit pull
55
-	@cp tfkit/tfkit.mk .
56
-
57
-.PHONY: test