/filefind/python/Makefile |
---|
1,8 → 1,9 |
SRC=filefind.py |
PRG=$(SRC) |
DIR=/var/tmp |
DIR = /home/arikkert |
test: filefind.py |
./filefind.py $(DIR) > result |
test: $(SRC) |
./$(PRG) $(DIR) > result |
sort result > result.sort |
find $(DIR) > result2 |
sort result2 > result2.sort |
9,7 → 10,6 |
wc *.sort |
diff *.sort |
clean: |
rm -f filefind |
cleantest: |
rm -rf result result.sort |
rm -rf result2 result2.sort |
/filefind/python/filefind.py |
---|
1,4 → 1,4 |
#! /usr/bin/env python3.1 |
#! /usr/bin/env python3 |
import sys |
import os.path |