Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
rdma-core
gen-pandoc.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gen-pandoc.sh of Package rdma-core
#!/bin/bash -x TARBALL=$(rpmspec --parse rdma-core.spec | grep Source: | awk '{ print $NF}') OUTDIR=$(tar tf $TARBALL | head -n 1) PATCHES=$(rpmspec --parse rdma-core.spec | egrep '^Patch[0-9]+:' | awk '{ print $NF}') BUILD_CMDS=$(python -c " import rpm spec = rpm.spec(\"rdma-core.spec\") print '%s' % (getattr(spec, \"build\"),) ") CMAKE_CMD=$(echo "$BUILD_CMDS" | sed -e :a -e '/\\$/N; s/\\\n//; ta' | grep /bin/cmake | sed -e 's/-GNinja//' -e 's/$OLDPWD\/./../') rm -Rf $OUTDIR tar xf $TARBALL cd $OUTDIR for patch in $PATCHES; do patch -p0 < ../$patch || exit 1 done mkdir build cd build eval $CMAKE_CMD || exit 1 make docs -j4 || exit 1 tar czf ../../prebuilt-pandoc.tgz pandoc-prebuilt cd ../..
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor