*! version 2.0.1

Title

boilerplate template main -- main project.do file

Description

This is a template for the main .do file in a project. This is the .do file that
calls all other .do files.

This is the only file that can use a absolute path. All
other .do files in the project must only use relative paths. That way, if you
want to share your project with someone else, or if you need to run it on another
computer, you only have to change the cd command in this file and it will run.

Boilerplate

This template creates a .do file with the following content:

version <stata_version>
clear all
<as of 16>frames reset
macro drop _all
cd "<basedir>"

do <abbrev>_dta01.do // some comment
do <abbrev>_ana01.do // some comment

exit

Tags

This file may contain one or more of the following tags:

<stata_version> will be replaced by the Stata version

<date> will be replaced by the date

<fn> will be replaced by the file name

<stub> will be replaced by the file name without the suffix

<abbrev> will be replaced by the file name without the suffix up to the last underscore

<basedir> will be replaced by the directory in which the file is saved

<as of #> will include whatever comes after that tag only if the Stata version is # or higher

Source code

mp_main.mpb