Files
rocm-systems/packaging/hip_hcc.prerm
T
Maneesh Gupta 84eb7e2133 packaging: create soft-links for .hipVersion & .buildInfo
Change-Id: Iabcd2224062ecd7742892d0574a74dced2d547b2
2016-10-11 11:15:10 +05:30

26 wiersze
360 B
Bash
Executable File

#!/bin/bash
pushd () {
command pushd "$@" > /dev/null
}
popd () {
command popd "$@" > /dev/null
}
ROCMDIR=/opt/rocm
HIPDIR=$ROCMDIR/hip
# Remove soft-links to libraries
HIPLIBFILES=$HIPDIR/lib/*
ROCMLIBDIR=$ROCMDIR/lib
pushd $ROCMLIBDIR
for f in $HIPLIBFILES
do
rm $(basename $f)
done
rm .hipInfo
popd
rmdir --ignore-fail-on-non-empty $ROCMLIBDIR