PageRenderTime 864ms CodeModel.GetById 694ms app.highlight 5ms RepoModel.GetById 156ms app.codeStats 7ms

/Makefile

http://showslow.googlecode.com/
Makefile | 57 lines | 32 code | 10 blank | 15 comment | 4 complexity | 9e304b31df05284221aa189c3fd3f4d7 MD5 | raw file
 1all:	update updatedb assets
 2	cd users && $(MAKE)
 3
 4update:
 5	if [ -d .svn ]; then svn update; fi
 6
 7updatedb:
 8	php dbupgrade.php
 9
10cleantables:
11	sed -e 's/Database: showslow.*/Database: showslow/' -e 's/ AUTO_INCREMENT=[0-9]*\b//' -i tables.sql
12
13rel:	release
14release: assets
15ifndef v
16	# Must specify version as 'v' param
17	#
18	#   make rel v=1.1.1
19	#
20else
21	#
22	# Tagging it with release tag
23	#
24	svn copy . https://showslow.googlecode.com/svn/tags/REL_${subst .,_,${v}}/
25	#
26	# Creating release tarball and zip
27	#
28	svn co http://showslow.googlecode.com/svn/tags/REL_${subst .,_,${v}}/ showslow_${v}
29	(cd showslow_${v}/users && $(MAKE) .git)
30	find showslow_${v} -type d -name .svn |xargs -n10 rm -rf
31	cp asset_versions.php showslow_${v}/asset_versions.php
32
33	# Not including Makefile into the package since it's not doing anything but release packaging
34	tar -c showslow_${v} |gzip > showslow_${v}.tgz
35	zip -r showslow_${v}.zip showslow_${v}
36	rm -rf showslow_${v}
37	# upload to Google Code repository (need account with enough permissions)
38	googlecode/googlecode_upload.py -s "ShowSlow v${v} (zip)" -p showslow -l "Featured,Type-Archive,OpSys-All" showslow_${v}.zip
39	googlecode/googlecode_upload.py -s "ShowSlow v${v} (tarball)" -p showslow -l "Featured,Type-Archive,OpSys-All" showslow_${v}.tgz
40	rm showslow_${v}.tgz showslow_${v}.zip
41endif
42
43timeplot-patch:
44	patch -p0 <timeplot.patch
45
46# from svn-assets project
47clean: noassets
48
49assets:
50	if [ -d .svn ]; then svn status --verbose --xml |php svn-assets/svnassets.php > asset_versions.php; fi
51
52# uncomment next line when we'll have any CSS files to process
53#find ./ -name '*.css' -not -wholename "./timeplot/*" -not -wholename "./timeline/*" -not -wholename "./ajax/*" -not -wholename "./users/*" | xargs -n1 php svn-assets/cssurlrewrite.php
54
55noassets:
56	cp svn-assets/no-assets.php asset_versions.php
57	find ./ -name '*_deploy.css' | xargs -n10 rm -f