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

12 lines
233 B
Bash

#!/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