Skip to content

Commit

Permalink
Merge branch 'Package_info'
Browse files Browse the repository at this point in the history
  • Loading branch information
randrescastaneda committed Nov 19, 2020
2 parents c9682da + c148974 commit bd6fcae
Show file tree
Hide file tree
Showing 19 changed files with 4,096 additions and 4,048 deletions.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions make.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// the 'make.do' file is automatically created by 'github' package.
// execute the code below to generate the package installation files.
// DO NOT FORGET to update the version of the package, if changed!
// for more information visit http://github.com/haghish/github

make primus, toc pkg version(0.0.0.9000) ///
license("MIT") ///
author("R.Andres Castaneda") ///
affiliation("The World Bank") ///
email("[email protected]") ///
url("https://github.com/worldbank/primus") ///
title("PRIMUS") ///
description("The Primus ado files for Stata in this GitHub repo are a critical component of this process. These allow for data sharing and file upload service that ensures that estimations are based on identical source data.") ///
install("primus.ado;primus.sthlp;primus_action.ado;primus_action.sthlp;primus_check.ado;primus_download.ado;primus_download.sthlp;primus_message.ado;primus_query.ado;primus_query.sthlp;primus_up.ado;primus_upload.ado;primus_upload.sthlp;primus_vintage.ado;Primus32.dll;Primus64.dll") ///
iancillary("")
112 changes: 56 additions & 56 deletions p/primus.ado → primus.ado
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
*! version 0.0.1 12Feb2018
*! Copyright (C) World Bank 2017-18

* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.

cap program drop primus
program primus, rclass
version 11.0
local version : di "version " string(_caller()) ":"
set prefix primus
gettoken subcmd 0 : 0, parse(" :,=[]()+-")
local l = strlen("`subcmd'")

if ("`subcmd'"=="upload") { //upload relelated tasks
primus_upload `0'
}
else if ("`subcmd'"=="query") { //query PRIMUS data
primus_query `0'
}
else if ("`subcmd'"=="download") {
primus_download `0'
}
else if ("`subcmd'"=="action") {
primus_action `0'
}
else { //none of the above
if ("`subcmd'"=="") {
di as smcl as err "syntax error"
di as smcl as err "{p 4 4 2}"
di as smcl as err "{bf:primus} must be followed by a subcommand."
di as smcl as err "You might type {bf:primus upload}, or {bf:primus query}, or {bf:primus action}, etc."
di as smcl as err "{p_end}"
exit 198
}
capture which primus_cmd_`subcmd'
if (_rc) {
if (_rc==1) exit 1
di as smcl as err "unrecognized subcommand: {bf:primus `subcmd'}"
exit 199
/*NOTREACHED*/
}
`version' primus_cmd_`subcmd' `0'
}
return add
end
*! version 0.0.1 12Feb2018
*! Copyright (C) World Bank 2017-18

* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.

cap program drop primus
program primus, rclass
version 11.0
local version : di "version " string(_caller()) ":"
set prefix primus
gettoken subcmd 0 : 0, parse(" :,=[]()+-")
local l = strlen("`subcmd'")

if ("`subcmd'"=="upload") { //upload relelated tasks
primus_upload `0'
}
else if ("`subcmd'"=="query") { //query PRIMUS data
primus_query `0'
}
else if ("`subcmd'"=="download") {
primus_download `0'
}
else if ("`subcmd'"=="action") {
primus_action `0'
}
else { //none of the above
if ("`subcmd'"=="") {
di as smcl as err "syntax error"
di as smcl as err "{p 4 4 2}"
di as smcl as err "{bf:primus} must be followed by a subcommand."
di as smcl as err "You might type {bf:primus upload}, or {bf:primus query}, or {bf:primus action}, etc."
di as smcl as err "{p_end}"
exit 198
}
capture which primus_cmd_`subcmd'
if (_rc) {
if (_rc==1) exit 1
di as smcl as err "unrecognized subcommand: {bf:primus `subcmd'}"
exit 199
/*NOTREACHED*/
}
`version' primus_cmd_`subcmd' `0'
}
return add
end
24 changes: 24 additions & 0 deletions primus.pkg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
v 0.0.0.9000
d 'PRIMUS': PRIMUS
d
d The Primus ado files for Stata in this GitHub repo are a critical component of this process. These allow for data sharing and file upload service that ensures that estimations are based on identical source data.
d
d Distribution-Date: 20201119
d License: MIT
d
F Primus32.dll
F Primus64.dll
F primus.ado
F primus.sthlp
F primus_action.ado
F primus_action.sthlp
F primus_check.ado
F primus_download.ado
F primus_download.sthlp
F primus_message.ado
F primus_query.ado
F primus_query.sthlp
F primus_up.ado
F primus_upload.ado
F primus_upload.sthlp
F primus_vintage.ado
Loading

0 comments on commit bd6fcae

Please sign in to comment.