- #!/bin/bash
- _CUR_PWD=`pwd`
- if [ ! -d "${USER}/rpmbuild/" ]; then
- ln -fs "${_CUR_PWD}" ~/rpmbuild
- fi
- pushd ~/rpmbuild
- rpmbuild -bb --target=aarch64-himix100-linux --define "cross \"aarch64-himix100linux\"" SPECS/yolov3app.spec
- cd -
- find ~ -maxdepth 1 -name "rpmbuild" -type l -exec rm -rfv {} \;
- exit 0
|