Compare commits
	
		
			3 Commits
		
	
	
		
			ae339786f4
			...
			62140c6f6b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 62140c6f6b | |||
| 431210460f | |||
| 1edc3fc5b4 | 
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| *.pdf | ||||
							
								
								
									
										31
									
								
								convert.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										31
									
								
								convert.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| #!/bin/bash | ||||
| # 2024-03-06 Hyperling | ||||
| # PanDoc Usage: https://pandoc.org/MANUAL.html#general-writer-options | ||||
|  | ||||
| date | ||||
|  | ||||
| md="ebook-veganarchist-sovereignty.md" | ||||
| ebook="VoluntarySovereignty.pdf" | ||||
|  | ||||
| if [[ -e $ebook ]]; then | ||||
| 	echo -n "Old: " | ||||
| 	du -h $ebook | ||||
| 	rm -v $ebook | ||||
| fi | ||||
|  | ||||
| cp $md /tmp/ | ||||
| #sed -i "s/{REVISION_DATE}/`date +'%Y-%m-%d'`/g" /tmp/$md | ||||
|  | ||||
| pandoc /tmp/$md \ | ||||
| 	-s -N --toc --toc-depth=3 \ | ||||
| 	-o $ebook | ||||
| status=$? | ||||
|  | ||||
| echo "Completed with status '$status'." | ||||
|  | ||||
| echo -n "New: " | ||||
| du -h $ebook | ||||
|  | ||||
| date | ||||
|  | ||||
| exit $status | ||||
							
								
								
									
										8
									
								
								install.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								install.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| #!/bin/bash | ||||
| # 2024-03-06 Hyperling | ||||
|  | ||||
| sudo apt install pandoc \ | ||||
| 	texlive-latex-base texlive-fonts-recommended \ | ||||
| 	texlive-extra-utils texlive-latex-extra | ||||
|  | ||||
| exit $? | ||||
		Reference in New Issue
	
	Block a user