-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathanonymize.make
31 lines (24 loc) · 979 Bytes
/
anonymize.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: clean all
all: anonymous-submission.tar
private/faster-minikanren:
git submodule init
git submodule update
anonymous-submission: private/faster-minikanren
mkdir -p $@
cp README.anonymous.md $@/README.md
cp *.scm *.py *.sh *.rkt $@
cp -r private tests $@
rm -r $@/private/faster-minikanren/.git
anonymous-submission.tar: anonymous-submission
{ \
matches=$$(grep -n -H -E -R -i --exclude "README.md" --exclude "README.anonymous.md" --exclude-dir="faster-minikanren" "michael|ballantyne|jason|hemann|nada|\bamin\b|william|byrd|raffi|sanna|harvard|indiana|northeastern|seton|alabama|UAB|birmingham" $^) ;\
if [ -n "$$matches" ] ;\
then echo "WARNING, found references to personal information:" ;\
echo "$$matches" ;\
echo "These can be edited in the 'anonymous-submission' directory";\
read -p "Hit enter to continue or C-c to quit: " response;\
fi ;\
tar --create --file $@ $^ ;\
}
clean:
rm -rf ./anonymous-submission ./anonymous-submission.tar