You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
478 B

#!/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