10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-27 06:43:48 +01:00
quantum_package/scripts/module/create_executables_list.sh

20 lines
472 B
Bash
Raw Normal View History

2015-03-26 01:33:32 +01:00
#!/bin/bash
#
# Thu Mar 26 01:27:14 CET 2015
2015-06-08 14:49:10 +02:00
if [[ -z ${QP_ROOT} ]]
2015-03-26 01:33:32 +01:00
then
2015-06-08 14:49:10 +02:00
print "The QP_ROOT environment variable is not set."
2015-03-26 01:33:32 +01:00
print "Please reload the quantum_package.rc file."
exit -1
fi
2015-06-08 14:49:10 +02:00
cd ${QP_ROOT}/data
2015-03-26 01:33:32 +01:00
rm -f executables
2016-09-23 10:01:26 +02:00
EXES=$(find -L ${QP_ROOT}/src -maxdepth 2 -depth -executable -type f | grep -e "${QP_ROOT}/src/[^/]*/[^/]*$" |sort )
2015-03-26 01:33:32 +01:00
for EXE in $EXES
do
2015-06-08 14:49:10 +02:00
printf "%-30s %s\n" $(basename $EXE) $EXE | sed "s|${QP_ROOT}|\$QP_ROOT|g" >> executables
2015-03-26 01:33:32 +01:00
done