1 # sunny256/utils.git/Makefile
2 # File ID: 455af534-fd45-11dd-a4b7-000475e441b9
3 # Author: Øyvind A. Holm <sunny@sunbase.org>
13 rm -f synced.sqlite.
*.bck
*.pyc
14 cd tests
&& $(MAKE
) clean
15 cd Lib
&& $(MAKE
) clean
16 cd src
&& $(MAKE
) clean
17 cd Git
&& $(MAKE
) clean
18 find .
-name .testadd.tmp
-type d
-print0 | xargs
-0r
rm -rf
23 cd src
&& $(MAKE
) fullclean
24 cd Git
&& $(MAKE
) fullclean
28 git lg
--date-order
$$(git branch
-a | cut
-c3- | \
29 grep
-Ee
'remotes/(Spread|bitbucket|repoorcz|sunbase)/' | \
30 grep
-v
'HEAD -> ') $$(git branch | cut
-c3-
)
34 git delrembr
$$(cat Div
/obsolete-refs.txt
); true
39 sunbase sunny@git.sunbase.org
:/home
/sunny
/Git
/utils.git
; true
41 bellmann sunny@bellmann
:/home
/sunny
/repos
/Git
/utils.git
; true
42 git remote add bitbucket git@bitbucket.org
:sunny256
/utils.git
; true
43 git remote add gitlab git@gitlab.com
:sunny256
/utils.git
; true
45 repoorcz ssh
://sunny256@repo.or.cz
/srv
/git
/sunny256-utils.git
; true
49 test ! -e synced.sql.lock
50 # FIXME: synced.sql is modified in Gitlab CI, disable it for now
51 if
test "$(GITLAB_CI)" != "true"; then \
52 test -z
"$$(filesynced --valid-sha 2>&1)"; \
54 test "$$(git log | grep -- -by: | sort -u | wc -l)" = "2"
55 cd tests
&& $(MAKE
) test
56 cd Lib
&& $(MAKE
) test
57 cd src
&& $(MAKE
) test
58 cd Git
&& $(MAKE
) test
63 git status
--porcelain
--ignored | grep ^
&& exit
1 || true
67 cd tests
&& $(MAKE
) testport
68 cd Lib
&& $(MAKE
) testport
69 cd src
&& $(MAKE
) testport
70 cd Git
&& $(MAKE
) testport
74 git log
--graph
--date-order
--format
=fuller
-p
--decorate
=short \
75 $$(git br
-a
--contains firstrev
--no-merged | git nocom
) \
80 test ! -e .update-synced_token.tmp
81 test ! -e synced.sql.lock
82 filesynced
--lock
>.update-synced_token.tmp
83 git ls-files | while read f
; do \
84 if
test -f
"$$f" -a
! -h
"$$f" ; then \
85 echo
"INSERT INTO synced (file) VALUES ('$$f');"; \
87 done | sqlite3 synced.sqlite
2>/dev
/null || true
88 echo
"SELECT file FROM synced ORDER BY file;" | \
89 sqlite3 synced.sqlite | while read f
; do \
90 if
test ! -f
"$$f"; then \
91 echo
"DELETE FROM synced WHERE file = '$$f';"; \
92 echo
"DELETE FROM todo WHERE file = '$$f';"; \
94 done | sqlite3 synced.sqlite
95 filesynced
--unlock
$$(cat .update-synced_token.tmp
)
96 rm -f .update-synced_token.tmp
100 cd Git
&& $(MAKE
) valgrind