CofeehousePy/deps/scikit-image/tools/rm_pyx_assoc_c_cpp.sh

12 lines
233 B
Bash
Raw Normal View History

2021-01-13 04:08:17 +01:00
#!/bin/bash
# Accepts a .pyx file path and deletes an associated .c file, if present.
filename="${1%.*}".c
if [ -e "$filename" ]; then
rm -f "$filename";
fi
filename="${1%.*}".cpp
if [ -e "$filename" ]; then
rm -f "$filename";
fi