i think this will work..
This commit is contained in:
		
							
								
								
									
										12
									
								
								build/build-op-agreement.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								build/build-op-agreement.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | #!/bin/bash  | ||||||
|  |  | ||||||
|  | OUTPUT_BASE_DIR="../YOURLLC" | ||||||
|  | LLC_NAME="YourLLC" | ||||||
|  |  | ||||||
|  | PDF_OUTPUT_FILE="$OUTPUT_BASE_DIR/$LLC_NAME-Contract.pdf" | ||||||
|  | MD_OUTPUT_FILE="$OUTPUT_BASE_DIR/$LLC_NAME-Contract.md" | ||||||
|  |  | ||||||
|  | source common.sh | ||||||
|  |  | ||||||
|  | prevRunCleanup | ||||||
|  | makeOutput | ||||||
							
								
								
									
										47
									
								
								build/common.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								build/common.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,47 @@ | |||||||
|  | function prevRunCleanup() | ||||||
|  | { | ||||||
|  |   | ||||||
|  | rm $MD_OUTPUT_FILE | ||||||
|  | rm $PDF_OUTPUT_FILE | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
|  | function makeOutput() | ||||||
|  |  | ||||||
|  | { | ||||||
|  | #Company specfic bits | ||||||
|  | company_files=( | ||||||
|  | "../SingeLLCOpAgreement/title.md" | ||||||
|  | "../SingeLLCOpAgreement/CompanyNameAndPurpose.md" | ||||||
|  | "../SingeLLCOpAgreement/grantToMembers.md" | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | #Common template stuff | ||||||
|  | boilerplate_files=( | ||||||
|  | "../CommonBoilerplate/defs.md" | ||||||
|  | "../CommonBoilerplate/boilerplate.md" | ||||||
|  | "../CommonBoilerplate/profInterest.md" | ||||||
|  | "../CommonBoilerplate/remove.md" | ||||||
|  | "../CommonBoilerplate/nda.md" | ||||||
|  | "../CommonBoilerplate/ip-assign.md" | ||||||
|  | "../CommonBoilerplate/TxLLC-ForProfit-MultiMember-Series-ProfitInterestGrant-OpAgreement.md" | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | 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 | ||||||
|  |  | ||||||
|  | pandoc \ | ||||||
|  | 	< $MD_OUTPUT_FILE \ | ||||||
|  | 	--number-sections \ | ||||||
|  | 	--toc \ | ||||||
|  | 	--from=markdown \ | ||||||
|  | 	--to=pdf \ | ||||||
|  | 	--output=$PDF_OUTPUT_FILE | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user