-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also update some doc-building scripts.
- Loading branch information
Showing
5 changed files
with
77 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Doxygen documentation for TNeo | ||
|
||
Having Doxygen and latex installed, here's how to generate documentation for a | ||
new release: | ||
|
||
``` | ||
$ make | ||
$ bash ./publish_doc_release.sh v1.09 | ||
``` | ||
|
||
(where `v1.09` is the git tag for the new version) | ||
|
||
To generate docs for a development (not yet released) version, use `bash | ||
./publish_doc_dev.sh` instead of the last command. | ||
|
||
TODO: make a Dockerfile with all the dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# get version string | ||
version_string="$(bash ../scripts/git_ver_echo.sh)" | ||
echo "TNeo version: $version_string" | ||
|
||
# generate commit message | ||
new_commit_message="docs updated: $version_string" | ||
|
||
# make sure we have docs repo | ||
if ! [ -d ./dfrank.bitbucket.org ]; then | ||
if ! [ -d ./dimonomid.github.io ]; then | ||
# clone docs repo | ||
hg clone ssh://[email protected]/dfrank/dfrank.bitbucket.org | ||
git clone [email protected]:dimonomid/dimonomid.github.io | ||
fi | ||
|
||
# now, docs repo should be cloned in any case, go to it | ||
cd dfrank.bitbucket.org | ||
cd dimonomid.github.io | ||
|
||
# make sure we have the latest revision | ||
hg pull -u | ||
git pull origin master | ||
|
||
# check last commit message | ||
last_commit_message="$(hg log -l1 --template '{desc}')" | ||
last_commit_message="$(git log -1 --pretty=%B)" | ||
|
||
# go back | ||
cd .. | ||
|
@@ -31,7 +32,6 @@ if [[ "$new_commit_message" == "$last_commit_message" ]]; then | |
exit 0 | ||
fi | ||
|
||
|
||
# ---- tneo repo has changed, so, continue ---- | ||
|
||
# remove all current output | ||
|
@@ -51,7 +51,7 @@ mv refman.pdf tneo.pdf | |
cd ../.. | ||
|
||
# go to dev documentation dir | ||
cd dfrank.bitbucket.org/tneokernel_api/dev | ||
cd dimonomid.github.io/tneokernel_api/dev | ||
|
||
# remove everything from there | ||
rm -r ./* | ||
|
@@ -60,20 +60,16 @@ rm -r ./* | |
cp -r ../../../output/* . | ||
|
||
# addremove | ||
hg addremove | ||
git add -A | ||
|
||
# commit | ||
hg ci -m"$new_commit_message" | ||
git commit -m"$new_commit_message" | ||
|
||
# push it | ||
# COMMENTED to be more safe | ||
# hg push | ||
echo "--------------------------------------------------------------------------" | ||
echo "DON'T FORGET to push your changes now, if everything is ok:" | ||
echo " $ cd dfrank.bitbucket.org" | ||
echo " $ hg push" | ||
echo "DON'T FORGET:" | ||
echo " 1. Add the new version link to dimonomid.github.io/tneokernel_api/index.html" | ||
echo " 2. Git push" | ||
echo "--------------------------------------------------------------------------" | ||
|
||
# go back | ||
cd ../../.. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# get tag name to generate docs for | ||
target_tag_name="$1" | ||
|
||
|
@@ -19,19 +21,19 @@ version_string="$(bash ../scripts/git_ver_echo.sh)" | |
new_commit_message="docs updated: $version_string" | ||
|
||
# make sure we have docs repo | ||
if ! [ -d ./dfrank.bitbucket.org ]; then | ||
if ! [ -d ./dimonomid.github.io ]; then | ||
# clone docs repo | ||
hg clone ssh://[email protected]/dfrank/dfrank.bitbucket.org | ||
git clone [email protected]:dimonomid/dimonomid.github.io | ||
fi | ||
|
||
# now, docs repo should be cloned in any case, go to it | ||
cd dfrank.bitbucket.org | ||
cd dimonomid.github.io | ||
|
||
# make sure we have the latest revision | ||
hg pull -u | ||
git pull origin master | ||
|
||
# check last commit message | ||
last_commit_message="$(hg log -l1 --template '{desc}')" | ||
last_commit_message="$(git log -1 --pretty=%B)" | ||
|
||
# go back | ||
cd .. | ||
|
@@ -42,7 +44,6 @@ if [[ "$new_commit_message" == "$last_commit_message" ]]; then | |
exit 0 | ||
fi | ||
|
||
|
||
# ---- tneo repo has changed, so, continue ---- | ||
|
||
# remove all current output | ||
|
@@ -62,7 +63,7 @@ mv refman.pdf tneo.pdf | |
cd ../.. | ||
|
||
# go to latest stable documentation dir | ||
cd dfrank.bitbucket.org/tneokernel_api/latest | ||
cd dimonomid.github.io/tneokernel_api/latest | ||
|
||
# remove everything from there | ||
rm -r ./* | ||
|
@@ -74,23 +75,19 @@ cp -r ../../../output/* . | |
cp -r . ../$target_tag_name | ||
|
||
# addremove | ||
hg addremove | ||
git add -A | ||
|
||
# commit | ||
hg ci -m"$new_commit_message" | ||
git commit -m"$new_commit_message" | ||
|
||
# push it | ||
# COMMENTED to be more safe | ||
# hg push | ||
echo "--------------------------------------------------------------------------" | ||
echo "DON'T FORGET to push your changes now, if everything is ok:" | ||
echo " $ cd dfrank.bitbucket.org" | ||
echo " $ hg push" | ||
echo "DON'T FORGET:" | ||
echo " 1. Add the new version link to dimonomid.github.io/tneokernel_api/index.html" | ||
echo " 2. Git push" | ||
echo "--------------------------------------------------------------------------" | ||
|
||
# go back | ||
cd ../../.. | ||
|
||
# update repo to the tip | ||
git checkout master | ||
|