don't hardcore paths to genisoimage and mkisofs

This commit is contained in:
George Danchev 2011-07-09 14:42:18 +00:00
parent 8b95d59332
commit b0eaa673fa

View File

@ -22,8 +22,7 @@ else
mkdir "${GEN_DATA_DIR}"
fi
RELENG_GENISOIMAGE=/usr/bin/genisoimage
RELENG_MKISOFS=/usr/bin/mkisofs
#
UPPER=40
# All must be set at this point
@ -43,7 +42,7 @@ printf "done.\n"
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"
#
# run xorriso
if [ -x ${RELENG_XORRISO} ]; then
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
@ -51,16 +50,18 @@ if [ -x ${RELENG_XORRISO} ]; then
done
fi
#
if [ -x ${RELENG_GENISOIMAGE} ]; then
# try to run genisoimage
if which genisoimage >/dev/null 2>&1; then
RELENG_GENISOIMAGE=`which genisoimage`
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}
done
fi
#
if [ -x ${RELENG_MKISOFS} ]; then
# try to run mkisofs
if which mkisofs >/dev/null 2>&1; then
RELENG_MKISOFS=`which mkisofs`
for run in 1 2 3; do
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
time ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}