-
Notifications
You must be signed in to change notification settings - Fork 0
/
repent
executable file
·40 lines (34 loc) · 1.2 KB
/
repent
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
31
32
33
34
35
36
37
38
39
40
:
#
# Change SATAN to SANTA. Do this *before* you type make...
#
# version 1, Fri Mar 24 2:25:29 1995, last mod by zen
#
# if we see an md5 file, we'll assume they have already done a make...
if test -f bin/md5 ; then
echo Run this before doing a \"make\", or run \"make clean\" and then run it...
exit 1
fi
#
# Change the file names from "*satan*" ==> "*santa*"
echo Finding all the file names
find . \! -name "satan*.gif" -print | while read old_name
do
new_name=`echo $old_name | sed 's/satan/santa/'`
if test $new_name != $old_name ; then
mv $old_name $new_name
fi
done
#
# Nuke the inline and acronym stuff in everything but the binaries...
echo Now changing all "SATAN" occurances to "SANTA"... please wait...
find . -type f \! -name "*.gif" -print |
grep -v see_the_light.pl | xargs \
perl -pi -e 's/SATAN/SANTA/g; s/satan/santa/g; s/Security Administrator Tool for Analyzing Networks/Security Analysis Network Tool for Administrators/'
echo linking santa...
ln html/images/santa.gif html/images/santa-almost-full.gif
ln html/images/santa.gif html/images/santa-full.gif
#
# one last switch...
perl -pi -e 's/"SANTA"/"SATAN"/; s/you can run the/but you shouldnt have run the/' html/name.html
echo Done!