Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove only .c files associated with .pyx source.
- Loading branch information
Josh Warner (Mac)
committed
Jul 12, 2015
1 parent
9bfcd44
commit 1d1a1a7
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/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 |