config.sh.in (853B)
1 #!/bin/sh 2 3 solstice_version="0.10" 4 5 solstice_dir="Solstice-${solstice_version}-GNU-Linux64" 6 solstice_arch="downloads/${solstice_dir}.tar.gz" 7 solstice_readme="${solstice_dir}/share/doc/solstice/README.md" 8 solstice_solver_readme="${solstice_dir}/share/doc/solstice-solver/README.md" 9 solstice_anim_readme="${solstice_dir}/share/doc/solstice-anim/README.md" 10 solstice_pp_readme="${solstice_dir}/share/doc/solstice-pp/README.md" 11 12 ######################################################################## 13 # Helper function 14 ######################################################################## 15 release_notes() # readme_file 16 { 17 cd .. 18 19 # Project name 20 sed -n '/^# /{p;q;}' "${OLDPWD}/$1" 21 22 # Extract and post-process the release notes 23 sed -n '/^## Release notes/,/^## License/p' "${OLDPWD}/$1" \ 24 | sed -e '1d' -e '$d' -e 's/^#//' 25 26 cd "${OLDPWD}" 27 }