github.com/catandhorse/git-lfs@v2.5.2+incompatible/rpm/clean.bsh (about)

     1  #!/usr/bin/env bash
     2  
     3  set -eu
     4  
     5  #Emulate the important parts of git clean -xdf for CentOS 6 full build
     6  
     7  CWD=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
     8  
     9  rm -rv ${CWD}/BUILD ${CWD}/BUILDROOT ${CWD}/RPMS ${CWD}/SRPMS || :
    10  
    11  find ${CWD}/SOURCES -not -name git-lfs.repo -delete || :
    12  
    13  rm ${CWD}/SPECS/golang.spec || :
    14  
    15  rm ${CWD}/build.log || :
    16