-
Notifications
You must be signed in to change notification settings - Fork 31
/
markdocversion.ado
54 lines (38 loc) · 1.69 KB
/
markdocversion.ado
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
Developed by E. F. Haghish (2014)
Center for Medical Biometry and Medical Informatics
University of Freiburg, Germany
* MarkDoc comes with no warranty *
MarkDoc Package
===============
This ado file is a part of MarkDoc package and is called within
markdoc.ado. It will connecto to http://haghish.com/ to obtain the latest
version of the MarkDoc package and notify the user, if the package is not
updated.
*/
program define markdocversion
version 11
// make sure that Stata does not repeat this every time
//if "$thenewestmarkdocversion" == "" {
cap qui do "http://www.haghish.com/packages/update.do"
//}
global markdocversion 3.79
if "$thenewestmarkdocversion" > "$markdocversion" {
di _n(2)
di as txt _n(2) "{hline}"
di " _ _ _ _ __ " _n ///
" | | | |_ __ __| | __ _| |_ ___ _ \ \ " _n ///
" | | | | '_ \ / _` |/ _` | __/ _ \ (_) | |" _n ///
" | |_| | |_) | (_| | (_| | || __/ _ | |" _n ///
" \___/| .__/ \__,_|\__,_|\__\___| (_) | |" _n ///
" |_| /_/ " _n ///
di as text "{p}MarkDoc has a new update available! Click on " ///
`"{ul:{bf:{stata "adoupdate markdoc, update":Update MarkDoc Now}}} "' ///
"or alternatively type {ul: {bf: adoupdate markdoc, update}} to " ///
"update the package."
di as text "{p}For more information regarding the new features " ///
"of MarkDoc, visit " ///
`"{browse "http://www.haghish.com/statistics/stata-blog/reproducible-research/markdoc.php":{it:http://www.haghish.com/markdoc}}{smcl}"'
}
end