mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Try to build mkisofs' first, and only
pkg_add -r' if you cannot.
This commit is contained in:
parent
2c1763d430
commit
074aec36c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82888
@ -36,10 +36,14 @@ fi
|
||||
type mkisofs 2>&1 | grep " is " >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo The mkisofs port is not installed. Trying to get it now.
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
|
||||
cd /usr/ports/sysutils/mkisofs && make install && make clean
|
||||
else
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -39,10 +39,14 @@ fi
|
||||
type mkisofs 2>&1 | grep " is " >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo The mkisofs port is not installed. Trying to get it now.
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
|
||||
cd /usr/ports/sysutils/mkisofs && make install && make clean
|
||||
else
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -39,10 +39,14 @@ fi
|
||||
type mkisofs 2>&1 | grep " is " >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo The mkisofs port is not installed. Trying to get it now.
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
if [ -f /usr/ports/sysutils/mkisofs/Makefile ]; then
|
||||
cd /usr/ports/sysutils/mkisofs && make install && make clean
|
||||
else
|
||||
if ! pkg_add -r mkisofs; then
|
||||
echo "Could not get it via pkg_add - please go install this"
|
||||
echo "from the ports collection and run this script again."
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user