All pastes #941575 Raw Edit

Untitled

public shellscript v1 · immutable
·published 2008-03-13 20:12 UTC
rendered paste body
#!/bin/shfiles_exist(){    [ -e "$1" ]}STATUS=okMESSAGE=if ! files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.{so*,a} ; then    exec repocop-test-skipfiif files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.so.* ; then    if ! test -z ${REPOCOP_PKG_NAME##lib*} && \        test -z ${REPOCOP_PKG_NAME##lib*-devel*} ; then            STATUS=fail            MESSAGE="${MESSAGE}Package containing shared libs in the public places should be named lib*"    fifiif files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.so ; then    if ! test -z ${REPOCOP_PKG_NAME##lib*-devel} && \        STATUS=fail        MESSAGE="${MESSAGE}Package containing shared libs in the public places should be named lib*-devel"    fifiif files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.a ; then    if ! test -z ${REPOCOP_PKG_NAME##lib*-devel-static} && \        STATUS=fail        MESSAGE="${MESSAGE}Package containing static libs in the public places should be named lib*-devel-static"    fifiexec repocop-test-$STATUS $MESSAGE