2022-09-20 21:16:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. /etc/profile
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2024-01-04 05:44:29 +00:00
|
|
|
if [ -z "$UI_SHADER" ]; then
|
|
|
|
option=".*\.\(glslp\|slangp\)$"
|
2022-09-20 21:16:51 +00:00
|
|
|
else
|
2024-01-04 05:44:29 +00:00
|
|
|
option=".*\.\($UI_SHADER\)$"
|
2022-09-20 21:16:51 +00:00
|
|
|
fi
|
|
|
|
|
2022-08-11 01:50:38 +00:00
|
|
|
for dir in /tmp/shaders
|
|
|
|
do
|
2024-01-04 05:44:29 +00:00
|
|
|
if [ -d "${dir}" ]; then
|
|
|
|
find ${dir} -regex "${option}" -print0 |
|
2022-08-11 01:50:38 +00:00
|
|
|
while IFS= read -r -d '' line; do
|
|
|
|
echo ${line#${dir}/},
|
|
|
|
done
|
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
done
|