3 changed files with 32 additions and 3 deletions
			
			
		@ -0,0 +1,28 @@
					 | 
				
			||||
#!/bin/bash | 
				
			||||
 | 
				
			||||
 | 
				
			||||
combine_javascript_sources() { | 
				
			||||
	cd "${MESON_SOURCE_ROOT}/src/gresource/js" && { | 
				
			||||
		cat _vendor/moment-with-locales.min.js \ | 
				
			||||
			LightDMObjects.js \ | 
				
			||||
			Greeter.js \ | 
				
			||||
			GreeterConfig.js \ | 
				
			||||
			ThemeUtils.js \ | 
				
			||||
			ThemeHeartbeat.js > bundle.js | 
				
			||||
	} | 
				
			||||
} | 
				
			||||
 | 
				
			||||
list_javascript_sources() { | 
				
			||||
	cd "${MESON_SOURCE_ROOT}/src" && find gresource/js -type f -name '*.js' -print | 
				
			||||
} | 
				
			||||
 | 
				
			||||
 | 
				
			||||
case "$1" in | 
				
			||||
	combine-js) | 
				
			||||
		combine_javascript_sources | 
				
			||||
	;; | 
				
			||||
 | 
				
			||||
	get-js-files) | 
				
			||||
		list_javascript_sources | 
				
			||||
	;; | 
				
			||||
esac | 
				
			||||
					Loading…
					
					
				
		Reference in new issue