element-web/res/css/rethemendex.sh
ckie f251009ced
rethemendex: use /usr/bin/env (#8896)
This increases Linux distro compatibility, in my case so it works with NixOS[0].

[0]: https://nixos.org

Signed-off-by: ckie <git-525ff67@ckie.dev>
2022-06-25 18:15:09 -04:00

15 lines
415 B
Bash
Executable file

#!/usr/bin/env sh
cd `dirname $0`
{
echo "// autogenerated by rethemendex.sh"
# we used to have exclude /themes from the find at this point.
# as themes are no longer a spurious subdirectory of css/, we don't
# need it any more.
find . -iname _\*.scss | fgrep -v _components.scss | LC_ALL=C sort |
while read i; do
echo "@import \"$i\";"
done
} > _components.scss