/[suikacvs]/2005/helowiki/page/Makefile
Suika

Contents of /2005/helowiki/page/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun May 16 22:40:03 2010 UTC (14 years, 5 months ago) by hero
Branch: MAIN
CVS Tags: HEAD
added

1 hero 1.1 CAT = cat
2     CVS = cvs
3     CVS_ADD = $(CVS) add -ko
4     CVS_RM = $(CVS) rm
5     CVS_COMMIT = $(CVS) commit -m "auto-committed"
6     CVS_LOGNAME = make
7     PERL = perl
8     RM = rm -fv
9     XARGS = xargs
10    
11     SWBIN = ../../bin
12     DIFFFL = $(PERL) $(SWBIN)/difffl.pl
13    
14     TMP_FILE_LIST = .files.tmp
15     TMP_FILE_LIST_ADDED = .files-added.tmp
16     TMP_FILE_LIST_REMOVED = .files-removed.tmp
17    
18     VERSIONING_FILE_FILTER = \.(?:txt|dat|db|ns|ref|prop)\Z
19    
20     cvs-commit: versioning-sync
21     LOGNAME=$(CVS_LOGNAME) $(CVS_COMMIT)
22    
23     versioning-sync: file-list-diff
24     -$(CAT) $(TMP_FILE_LIST_ADDED) | $(XARGS) $(CVS_ADD) dummy
25     -$(CAT) $(TMP_FILE_LIST_REMOVED) | $(XARGS) $(CVS_RM) dummy
26    
27     file-list-diff:
28     $(DIFFFL) --list-file=$(TMP_FILE_LIST) \
29     --added-list-file=$(TMP_FILE_LIST_ADDED) \
30     --removed-list-file=$(TMP_FILE_LIST_REMOVED) \
31     --target-filter="$(VERSIONING_FILE_FILTER)"
32    
33     clean:
34     $(RM) *.bak *~ *.BAK
35     $(RM) .*.tmp .*~
36     $(RM) $(TMP_FILE_LIST_ADDED) $(TMP_FILE_LIST_REMOVED)
37    
38     distclean: clean
39     $(RM) $(TMP_FILE_LIST)
40    
41    

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24