Skip to content

Commit

Permalink
Merge pull request gvegayon#2 from bquistorff/master
Browse files Browse the repository at this point in the history
Allow for direct installation
  • Loading branch information
gvegayon authored Aug 25, 2016
2 parents 3e61d89 + b4d6c86 commit 2eb709c
Show file tree
Hide file tree
Showing 6 changed files with 1,151 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ available functions is:
* `dt_rename_file()` Rename a file through OS cmdline.

Plus a set of functions to build and call modules' (packages') demos!
## Installation
For installing from Stata version \>=13

``` stata
. net install devtools, from(https://raw.github.com/gvegayon/devtools/master/) replace
. mata mata mlib index
```

For Stata version \<12, download as zip, unzip, and then replace the above -net install- with

``` stata
. net install devtools, from(full_local_path_to_files) replace
```

For earlier versions of Stata, you will have to download the package and build it (run `build_devtools.do`) and then install from the directory.


## Authors
George Vega (g dot vegayon at gmail dot com)
Expand Down
40 changes: 40 additions & 0 deletions build_and_install_devtools.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
clear all
set more off
set trace off
mata mata clear
// cd i:/george/comandos_paquetes_librerias/stata/devtools
set matastrict on

mata mata mlib create ldevtools, replace
do devtools.mata
do dt_capture.mata
do dt_create_pkg.mata
do dt_git_install.mata
do dt_install_on_the_fly.mata
do dt_list_files.mata
do dt_moxygen.mata
do dt_read_txt.mata
do dt_restart_stata.mata
do dt_shell.mata
do dt_st_chars.mata
do dt_stata_capture.mata
do dt_stata_path.mata

mata mata mlib add ldevtools dt_*(), complete

/* Documenting source code */
mata dt_moxygen(("devtools.mata","dt_capture.mata","dt_st_chars.mata","dt_moxygen.mata"), "devtools_source.hlp")

/*
Creates a pkg file
mata
dt_create_pkg(
"devtools Tools for the stata developer.",
("ldevtools.mlib","devtools_source.hlp","mf_dt_capture.sthlp"),
1,
"George Vega, James Fiedler"
)
end
*/

mata dt_install_on_the_fly("devtools")
3 changes: 2 additions & 1 deletion build_devtools.do
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ dt_create_pkg(
end
*/

mata dt_install_on_the_fly("devtools")
//For installing see the build_and_install_devtools.do
//mata dt_install_on_the_fly("devtools")
Loading

0 comments on commit 2eb709c

Please sign in to comment.