Skip to content

Commit

Permalink
Merge pull request #333 from worldbank/v7.2
Browse files Browse the repository at this point in the history
Merging V7.2 to main
  • Loading branch information
kbjarkefur authored Apr 10, 2023
2 parents 903b2d8 + b6e45e9 commit f8a161f
Show file tree
Hide file tree
Showing 27 changed files with 196 additions and 121 deletions.
16 changes: 12 additions & 4 deletions run/ieboilstart.do
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@

global rieboil "${runoutput}/ieboilstart"

//cap which iefieldkit
//if _rc == 111 ssc install iefieldkit

* Load the command from file and utils
qui do "${ietoolkit_clone}/src/ado_files/ieboilstart.ado"
qui do "${ietoolkit_clone}/src/ado_files/ietoolkit.ado"


* Testing old "default" syntax
cap ieboilstart , version(13.1) adopath("${rieboil}/ado1")
assert _rc == 198

* Load the command from file and utils
qui do "${ietoolkit_clone}/src/ado_files/ieboilstart.ado"
qui do "${ietoolkit_clone}/src/ado_files/ietoolkit.ado"

* Set PERSONAL path
ieboilstart , version(13.1) adopath("${rieboil}/ado1")
ieboilstart , version(13.1) adopath("${rieboil}/ado1", nostrict)
`r(version)'

*Test mock command in this ado path
ado1

* NOTE THAT THIS LINE WILL CAUSE AN ERROR IF THIS RUN FILE IS RAN TWICE
* WITHOUT RESTARTING STATA INBETWEEN
iefieldkit


Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iebaltab.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

capture program drop iebaltab,
program define iebaltab, rclass
Expand Down
15 changes: 12 additions & 3 deletions src/ado_files/ieboilstart.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

capture program drop ieboilstart
program ieboilstart , rclass
Expand Down Expand Up @@ -78,8 +78,14 @@
local apath = trim("`apath'")
local aoption = trim(subinstr("`aoption'",",","",1))
if !missing("`aoption'") & "`aoption'" != "strict" {
noi di as error `"{phang}The suboption [`aoption'] in the option [`adopath'] is not a valid suboption. See help file for more details.{p_end}"'
if missing("`aoption'") | !inlist("`aoption'", "strict", "nostrict") {
if missing("`aoption'") {
local aopterr `"You did not provide any sub-option."'
}
else {
local aopterr `"You provided the sub-option [`aoption']."'
}
noi di as error `"{phang}The option [`adopath'] requires one of the sub-options [strict] or [nostrict]. `aopterr' See help file for more details.{p_end}"'
error 198
}
Expand All @@ -106,6 +112,9 @@
if _rc local morepaths 0
}
* Update the paths where mata search for commands to mirror adopath
mata: mata mlib index
local aoutput `"`aoutput'PLUS adopath was set to [`apath']. All adopaths other than this and BASE have been removed. Only programs and ado-files in this PLUS folder are accessible to Stata until the end of this session."'
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/ieddtab.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap program drop ieddtab
program define ieddtab, rclass
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iedorep.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap program drop iedorep
program define iedorep, rclass
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iedropone.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

capture program drop iedropone
program define iedropone ,
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iefolder.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap program drop iefolder
program define iefolder
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iegitaddmd.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap program drop iegitaddmd
program define iegitaddmd
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iegraph.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap program drop iegraph
program define iegraph, rclass
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iekdensity.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap prog drop iekdensity
prog define iekdensity
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iematch.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

cap program drop iematch
program define iematch
Expand Down
2 changes: 1 addition & 1 deletion src/ado_files/iesave.ado
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

capture program drop iesave
program iesave , rclass
Expand Down
6 changes: 3 additions & 3 deletions src/ado_files/ietoolkit.ado
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
*! version 7.1 19JAN2023 DIME Analytics [email protected]
*! version 7.2 04APR2023 DIME Analytics [email protected]

capture program drop ietoolkit
program ietoolkit, rclass

* UPDATE THESE LOCALS FOR EACH NEW VERSION PUBLISHED
local version "7.1"
local versionDate "19JAN2023"
local version "7.2"
local versionDate "04APR2023"

syntax [anything]

Expand Down
2 changes: 1 addition & 1 deletion src/help_files/iebaltab.sthlp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{smcl}
{* 19 Jan 2023}{...}
{* 04 Apr 2023}{...}
{hline}
help for {hi:iebaltab}
{hline}
Expand Down
Loading

0 comments on commit f8a161f

Please sign in to comment.