distribution/packages/jelos/sources/scripts/getshaders

17 lines
381 B
Text
Raw Normal View History

2022-02-05 14:23:32 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2022 Fewtarius (https://github.com/fewtarius)
for dir in /tmp/shaders
do
if [ -d "${dir}" ]
then
find ${dir} -name '*.glslp' -print0 |
while IFS= read -r -d '' line; do
echo ${line#${dir}/},
done
fi
2022-02-05 14:23:32 +00:00
done