Kirill Simonov avatar Kirill Simonov committed 53931b2

Added `make dist` target to build a zip archive.

Comments (0)

Files changed (1)

-.PHONY: demo
+.PHONY: demo dist
 # The connection URI for regression databases.
+	# Create build directories
+	rm -rf build
+	mkdir -p build/dist build/tmp/htraf
+	mkdir -p build/tmp/htraf/js/lib build/tmp/htraf/css/lib
+	# HTRAF itself
+	cp htraf/htraf.js build/tmp/htraf
+	cp htraf/js/htraf.*.js build/tmp/htraf/js
+	cp htraf/css/htraf*.css build/tmp/htraf/css
+	cp -r htraf/img build/tmp/htraf
+	# JSON-js
+	wget -P build/tmp -q --no-check-certificate \
+	cp build/tmp/json2.js build/tmp/htraf/js/lib
+	# JQuery
+	wget -P build/tmp -q
+	cp build/tmp/jquery-1.4.3.min.js build/tmp/htraf/js/lib
+	# JQPlot
+	wget -P build/tmp -q --no-check-certificate \
+	mkdir build/tmp/jqplot
+	tar -xz -C build/tmp/jqplot -f build/tmp/jquery.jqplot.0.9.7r629.tar.gz
+	mkdir -p build/tmp/htraf/js/lib/jqplot/plugins
+	cp build/tmp/jqplot/dist/excanvas.min.js build/tmp/htraf/js/lib/jqplot
+	cp build/tmp/jqplot/dist/jquery.jqplot.min.js build/tmp/htraf/js/lib/jqplot
+	cp build/tmp/jqplot/dist/plugins/*.min.js build/tmp/htraf/js/lib/jqplot/plugins
+	cp build/tmp/jqplot/dist/jquery.jqplot.min.css build/tmp/htraf/css/lib
+	# blockUI
+	wget -P build/tmp -q --no-check-certificate \
+	cp build/tmp/jquery.blockUI.js build/tmp/htraf/js/lib
+	# JQuery UI
+	wget -P build/tmp -q
+	wget -P build/tmp -q
+	unzip -q build/tmp/ -d build/tmp
+	unzip -q build/tmp/ -d build/tmp
+	cp build/tmp/jquery-ui-1.8.5/ui/minified/jquery-ui.min.js build/tmp/htraf/js/lib/jquery-ui-1.8.5.custom.min.js
+	cp build/tmp/jquery-ui-themes-1.8.5/themes/base/jquery-ui.css build/tmp/htraf/css/lib/jquery-ui-1.8.5.custom.css
+	cp -r build/tmp/jquery-ui-themes-1.8.5/themes/base/images/ build/tmp/htraf/css/lib
+	# Pack the bundle
+	cd build/tmp; zip -rq ../dist/ htraf
+	rm -rf build/tmp
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.