2020-10-17 05:07:29 +00:00
|
|
|
function prevRunCleanup()
|
|
|
|
{
|
|
|
|
|
|
|
|
rm $MD_OUTPUT_FILE
|
|
|
|
rm $PDF_OUTPUT_FILE
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function makeOutput()
|
|
|
|
|
|
|
|
{
|
|
|
|
#Company specfic bits
|
|
|
|
company_files=(
|
2020-10-28 19:01:33 +00:00
|
|
|
"../SingeLLCOpAgreement/TitlePage.md"
|
2020-10-17 05:07:29 +00:00
|
|
|
"../SingeLLCOpAgreement/CompanyNameAndPurpose.md"
|
2020-10-28 19:01:33 +00:00
|
|
|
"../SingeLLCOpAgreement/ProfitInterestGrant.md"
|
|
|
|
|
2020-10-17 05:07:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#Common template stuff
|
|
|
|
boilerplate_files=(
|
2020-10-28 06:31:45 +00:00
|
|
|
"../CommonBoilerplate/Definitions.md"
|
2020-10-17 05:12:21 +00:00
|
|
|
"../CommonBoilerplate/CommonTermsAndConditions.md"
|
2020-10-28 06:31:45 +00:00
|
|
|
"../CommonBoilerplate/ProfitInterest.md"
|
|
|
|
"../CommonBoilerplate/MemberRemoval.md"
|
2020-10-28 02:34:47 +00:00
|
|
|
"../CommonBoilerplate/OutsideCapRaise.md"
|
|
|
|
"../CommonBoilerplate/AdditionalMembershipInterests.md"
|
2020-10-28 06:12:30 +00:00
|
|
|
"../CommonBoilerplate/RightsToCompanyInformation.md"
|
|
|
|
"../CommonBoilerplate/LiabilityToThirdParties.md"
|
|
|
|
"../CommonBoilerplate/ManagementOfTheCompany.md"
|
|
|
|
"../CommonBoilerplate/DutyOfCare.md"
|
|
|
|
"../CommonBoilerplate/Indemnification.md"
|
|
|
|
"../CommonBoilerplate/AccountsAndRecords.md"
|
|
|
|
"../CommonBoilerplate/Capcon.md"
|
|
|
|
"../CommonBoilerplate/Distributions.md"
|
|
|
|
"../CommonBoilerplate/Dissolution.md"
|
2020-10-28 06:26:23 +00:00
|
|
|
"../CommonBoilerplate/Taxes.md"
|
2020-10-28 06:31:45 +00:00
|
|
|
"../CommonBoilerplate/NonDisclosure.md"
|
|
|
|
"../CommonBoilerplate/IntelectualPropertAssign.md"
|
2020-10-28 06:12:30 +00:00
|
|
|
"../CommonBoilerplate/ClosingAndSignature.md"
|
2020-10-17 05:07:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
IFS=$'\n\t'
|
|
|
|
|
|
|
|
for file in ${company_files[@]}; do
|
|
|
|
cat $file >> $MD_OUTPUT_FILE
|
|
|
|
done
|
|
|
|
|
|
|
|
for file in ${boilerplate_files[@]}; do
|
|
|
|
cat $file >> $MD_OUTPUT_FILE
|
|
|
|
done
|
|
|
|
|
2021-03-26 19:57:42 +00:00
|
|
|
#pandoc \
|
|
|
|
# --from=markdown \
|
|
|
|
# --number-sections \
|
|
|
|
## --toc \
|
|
|
|
# --output=$1.pdf
|
|
|
|
|
2020-10-17 05:07:29 +00:00
|
|
|
pandoc \
|
|
|
|
< $MD_OUTPUT_FILE \
|
2021-03-26 19:57:42 +00:00
|
|
|
--from=markdown \
|
2020-10-17 05:07:29 +00:00
|
|
|
--number-sections \
|
|
|
|
--toc \
|
|
|
|
--output=$PDF_OUTPUT_FILE
|
2021-03-26 19:57:42 +00:00
|
|
|
|
|
|
|
# --to=pdf \
|
2020-10-17 05:07:29 +00:00
|
|
|
}
|