10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 21:03:56 +01:00
quantum_package/scripts/module/create_executables_list.sh

20 lines
453 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
2015-06-18 11:20:52 +02:00
EXES=$(find -L ${QP_ROOT}/src -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