Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F322
bootstrap_bmake
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
bapt
Jun 6 2014, 3:56 PM
2014-06-06 15:56:03 (UTC+0)
Size
915 B
Referenced Files
None
Subscribers
None
bootstrap_bmake
View Options
#!/bin/sh
err
()
{
cd
${
ORIGDIR
}
rm
-rf
${
WRKDIR
:-
/nonexistent
}
echo
"
$@
"
>
&
2
exit
1
}
:
${
PORTSDIR
:=/usr/ports
}
:
${
TMPDIR
:=/tmp
}
url
=
http://ftp.netbsd.org/pub/NetBSD/misc/sjg/bmake-20140214.tar.gz
makesum
=
"2ec1771a800431c26361659ab0f96ec5c2536e85b46564eb69fa75a4b12886de"
WRKDIR
=
`
mktemp
-d
${
TMPDIR
}
/bootstrap-ports-XXXX
`
ORIGDIR
=
`
pwd
`
cd
${
WRKDIR
}
||
err
"Impossible to create working directory"
fetch
${
url
}
||
err
"Impossible to fetch bmake"
archive
=
${
url
##*/
}
sum
=
$(
sha256
-q
${
archive
}
)
[
"
${
sum
}
"
==
${
makesum
}
]
||
err
"Bad checksum"
tar
xf
${
archive
}
||
err
"Impossible to extract bmake"
cd
${
WRKDIR
}
/bmake
||
err
"Impossible to enter the bmake directory"
./configure
||
err
"Fails to configure"
sh
./make-bootstrap.sh
||
err
"Fails to bootstrap"
/
${
WRKDIR
}
/bmake/bmake
-C
${
PORTSDIR
}
/devel/bmake
clean
reinstall
||
err
"Fails to bootstrap"
cd
${
ORIGDIR
}
rm
-rf
${
WRKDIR
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
277
Default Alt Text
bootstrap_bmake (915 B)
Attached To
Mode
P9 bootstrap bmake
Attached
Detach File
Event Timeline
Log In to Comment