Skip to content
Snippets Groups Projects
Select Git revision
  • 840fa270b8e7a3c41948925e002a8ca10b08755f
  • master default protected
  • beta
  • dev
  • andrewssobral-patch-1
  • update
  • thomas-fork
  • 2.0
  • v3.2.0
  • v3.1.0
  • v3.0
  • bgslib_py27_ocv3_win64
  • bgslib_java_2.0.0
  • bgslib_console_2.0.0
  • bgslib_matlab_win64_2.0.0
  • bgslib_qtgui_2.0.0
  • 2.0.0
  • bgs_console_2.0.0
  • bgs_matlab_win64_2.0.0
  • bgs_qtgui_2.0.0
  • v1.9.2_x86_mfc_gui
  • v1.9.2_x64_java_gui
  • v1.9.2_x86_java_gui
23 results

run_video.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Makefile 1.47 KiB
    SHELL = /bin/bash
    .PHONY: run test docs release install
    
    run:
    	# run an example simulation
    	if [ -d "example_results" ]; then rm -r example_results; fi
    	julia run.jl -o example_results
    	#src/analysis/analyse_nature.R example_results
    
    test:
    	# running test suite
    	cd test; julia runtests.jl
    
    date = $(shell date +%F)
    commit = $(shell git log --format="%h" -1)
    version = $(shell grep "version" Project.toml | sed 's/[[:alpha:]|=|"|[:space:]]//g')
    
    docs:
    	# building documentation
    	# include the version, date, and latest commit in the footer of the index page
    	sed -i -e "s/\*This documentation was last updated.*/\*This documentation was last updated on ${date} for \*\*Persefone.jl v${version}\*\* (commit [${commit}](https\:\/\/git\.idiv\.de\/persefone\/persefone\-model\/\-\/commit\/${commit})).\*/" docs/src/index.md
    	sed -i -e "s/v[0-9]\+\.[0-9]\+\.[0-9]\+/v${version}/" docs/src/assets/titlepage.tex
    	cd docs; julia builddocs.jl
    	mv docs/build/Persefone.jl.pdf docs/manual.pdf
    
    profile:
    	# run and profile an example simulation
    	if [ -d "profile_results" ]; then rm -r profile_results; fi
    	./runprofile.jl -o profile_results
    
    container:
    	#TODO create a Singularity container
    	echo "Not yet implemented (#43)."
    
    release:
    	echo "Not yet implemented."
    
    install:
    	# install Julia and/or package dependencies TODO needs testing
    	echo "Installing Julia and juliaup"
    	curl -fsSL https://install.julialang.org | sh
    	echo "Installing package dependencies"
    	julia -e "Pkg.activate(\".\"); Pkg.instantiate()"