Skip to content

Instantly share code, notes, and snippets.

View int128's full-sized avatar

Hidetake Iwata int128

View GitHub Profile
topdir="${WORKSPACE}/rpmbuild"
rpmdir="${topdir}/RPMS/$(uname -m)"
echo "%_topdir ${topdir}" > "${HOME}/.rpmmacros"
case "${TARGET}" in
*/httpd-*)
# patch for httpd-2.4.3
tarball="${TARGET##*/}"
module="${tarball%.tar.*}"
curl -O "${TARGET}"
// requires classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.6'
/**
* Wait until the resource is ready state.
*/
def waitUntilResourceIsReady(String resource) {
def http = new groovyx.net.http.HTTPBuilder(resource)
def check = {
try {
http.get(contentType: groovyx.net.http.ContentType.TEXT)