don't hardcore paths to genisoimage and mkisofs
This commit is contained in:
parent
8b95d59332
commit
b0eaa673fa
@ -22,8 +22,7 @@ else
|
|||||||
mkdir "${GEN_DATA_DIR}"
|
mkdir "${GEN_DATA_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELENG_GENISOIMAGE=/usr/bin/genisoimage
|
#
|
||||||
RELENG_MKISOFS=/usr/bin/mkisofs
|
|
||||||
UPPER=40
|
UPPER=40
|
||||||
|
|
||||||
# All must be set at this point
|
# 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"
|
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"
|
||||||
|
|
||||||
#
|
# run xorriso
|
||||||
if [ -x ${RELENG_XORRISO} ]; then
|
if [ -x ${RELENG_XORRISO} ]; then
|
||||||
for run in 1 2 3; do
|
for run in 1 2 3; do
|
||||||
printf "\n${SELF}: Running ${RELENG_XORRISO} -as mkisofs -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
# try to run genisoimage
|
||||||
if [ -x ${RELENG_GENISOIMAGE} ]; then
|
if which genisoimage >/dev/null 2>&1; then
|
||||||
|
RELENG_GENISOIMAGE=`which genisoimage`
|
||||||
for run in 1 2 3; do
|
for run in 1 2 3; do
|
||||||
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
|
printf "\n${SELF}: Running ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
|
||||||
time ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}
|
time ${RELENG_GENISOIMAGE} -quiet -print-size ${GEN_DATA_DIR}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
# try to run mkisofs
|
||||||
if [ -x ${RELENG_MKISOFS} ]; then
|
if which mkisofs >/dev/null 2>&1; then
|
||||||
|
RELENG_MKISOFS=`which mkisofs`
|
||||||
for run in 1 2 3; do
|
for run in 1 2 3; do
|
||||||
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
|
printf "\n${SELF}: Running ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}. Trial: ${run}.\n"
|
||||||
time ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}
|
time ${RELENG_MKISOFS} -quiet -print-size ${GEN_DATA_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user