]> rtime.felk.cvut.cz Git - edu/osp-wiki.git/blob - student/prj-clean-pointers
lectures: minor update of link to LinuxDays 2023 presentation listing.
[edu/osp-wiki.git] / student / prj-clean-pointers
1 #!/bin/sh
2
3 for stud in * ; do
4   if [ -d "$stud" ] ; then
5     if true ; then
6       sed --in-place \
7         -e '/^For example: <a href=.https:\/\/www.ohloh.net\/accounts\/9897?ref=Detailed.>$/d' \
8         -e '/^Například: <a href=.https:\/\/www.ohloh.net\/accounts\/9897?ref=Detailed.>$/d' \
9         -e '/^  <img alt=.Ohloh profile for Linus.Torvalds. height=.35. src=.https:\/\/www.ohloh.net\/accounts\/9897\/widgets\/account_detailed.gif. width=.191. \/>$/,+1d' \
10         -e '/^\* \[Další relevantní odkazy dokládající mou práci...\](http:\/\/lwn.net\/Articles\/385586\/)$/d' \
11         -e '/^\* \[Odkazy na mé commity v repozitáři projektu...\](http:\/\/git.kernel.org\/?p=linux\/kernel\/git\/torvalds\/linux-2.6.git;a=commit;h=ea90002b0fa7bdee86ec22eba1d951f30bf043a6)$/d' \
12         -e '/^\* \[Odkaz na můj repozitář s aktuálním stavem mé práce...\](http:\/\/git.kernel.org\/?p=linux\/kernel\/git\/torvalds\/linux-2.6.git;a=summary)$/d' \
13         -e '/^\* \[Odkazy na mou komunikaci s vývojáři v on-line archivech veřejných diskuzí...\](http:\/\/groups.google.com\/group\/comp.os.minix\/browse_thread\/thread\/e3df794a2bce97da.*$/d' \
14         -e '/^\*\*Domovská stránka projektu:\*\* <http:\/\/www.example.com>$/d' \
15         -e '/^\* \[My communication with developers in a public mailing list archive\](http:\/\/groups.google.com\/group\/comp.os.minix\/browse_thread\/thread\/e3df794a2bce97da\/2194d253268b0a1b?#2194d253268b0a1b)$/d' \
16         -e '/^\* \[Version control repository with the actual state of my work\](http:\/\/git.kernel.org\/?p=linux\/kernel\/git\/torvalds\/linux-2.6.git;a=summary)/d' \
17         -e '/^\* \[My commit in the project repository\](http:\/\/git.kernel.org\/?p=linux\/kernel\/git\/torvalds\/linux-2.6.git;a=commit;h=ea90002b0fa7bdee86ec22eba1d951f30bf043a6)$/d' \
18         -e '/^\* \[Additional supporting material\](http:\/\/lwn.net\/Articles\/385586\/)/d' \
19         -e '/^\* \[\[Example\] My communication with developers in a public mailing list archive\](http:\/\/groups.google.com\/group\/comp.os.minix\/browse_thread\/thread\/e3df794a2bce97da\/2194d253268b0a1b?#2194d253268b0a1b)$/d' \
20         -e '/^\* \[\[Example\] Version control repository with the actual state of my work\](http:\/\/git.kernel.org\/?p=linux\/kernel\/git\/torvalds\/linux-2.6.git;a=summary)$/d' \
21         -e '/^\* \[\[Example\] My commit in the project repository\](http:\/\/git.kernel.org\/?p=linux\/kernel\/git\/torvalds\/linux-2.6.git;a=commit;h=ea90002b0fa7bdee86ec22eba1d951f30bf043a6)$/d' \
22         -e '/^\* \[\[Example\] Additional supporting material\](http:\/\/lwn.net\/Articles\/385586\/)$/d' \
23         -e '/<img alt=.* border=[^ ]* height=[^ ]* src=.https:\/\/www.ohloh.net\/accounts\/9897\/widgets\/account_detailed.gif. width=[^ ]* *\/>$/d' \
24         -e '/^<a href=.https:\/\/www.ohloh.net\/accounts\/9897?ref=Detailed. target=._blank.>$/,/^<\/a>$/d' \
25         "$stud/index.mdwn"
26     fi
27     if [ ! -e "$stud/prezentace1.pdf" ] ; then
28       sed --in-place \
29         -e '/^\* ..Prezentace záměru práce ve formátu PDF nebo OpenDocument ("Attachment" k této stránce).prezentace1.pdf..$/d' \
30         -e '/^\* ..Presentation of the aim of my work in PDF or OpenDocument format (upload it as an .Attachment. to this page).prezentace1.pdf..$/d' \
31         "$stud/index.mdwn"
32     fi
33     if [ ! -e "$stud/prezentace2.pdf" ] ; then
34       sed --in-place \
35         -e '/^\* ..Prezentace výsledku práce.prezentace2.pdf..$/d' \
36         -e '/^\* ..Presentation of the results of my work.prezentace2.pdf..$/d' \
37         "$stud/index.mdwn"
38     fi
39   fi
40 done