mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	These are all kinda weird but I use them when creating releases, so it seems to make sense to add them to the repo. I don't think they are useful to anyone but me, but in the event someone else takes over, they might be a useful starting point. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| cat $1 | \
 | |
| 	sed -e '1,/title/d;/<\/head>/,/<body/d;/<\/body/,/<\/html/d' | \
 | |
| 	sed -e '/^@media/,/^}/d' | \
 | |
| 	sed -e 's/src="images/src="\/images/g' | \
 | |
| 	sed -e 's/src="mobile-images/src="\/mobile-images/g' | \
 | |
| 	html-minifier --collapse-whitespace --keep-closing-slash --minify-js --minify-css > $1.wp
 |