File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # $1 = technology
3
+ # $2 = filename
4
+ # $3 = type
5
+ # $4 = title
2
6
cp techniques/technique-template.html ../technique-template.html
3
7
while [ $# -gt 0 ]
4
8
do
5
9
git checkout --orphan tech-$2
6
10
git rm -rf .
7
11
mkdir techniques/$1
8
12
cp ../technique-template.html techniques/$1 /$2 .html
9
- sed -i " s/Technique Title/$3 /g" techniques/$1 /$2 .html
13
+ sed -i " s/<p id=\" technology\" ></p>/<p id=\" technology\" >$1 </p>/" techniques/$1 /$2 .html
14
+ sed -i " s/<p id=\" type\" ></p>/<p id=\" type\" >$3 </p>/" techniques/$1 /$2 .html
15
+ sed -i " s/Technique Title/$4 /g" techniques/$1 /$2 .html
10
16
git add techniques/$1 /$2 .html
11
17
git commit -m " Set up $2 technique"
12
18
git push --set-upstream origin tech-$2
13
19
shift
14
20
shift
15
21
shift
22
+ shift
16
23
done
17
24
rm ../technique-template.html
18
25
git checkout technique-setup
Original file line number Diff line number Diff line change 8
8
< h1 > Technique Title</ h1 >
9
9
< section id ="meta ">
10
10
< h2 > Metadata</ h2 >
11
- < p id ="id "> ID: W## </ p >
12
- < p id ="technology "> Technology: ARIA | CSS | Flash | General | HTML | PDF | Script | Server | Silverlight | SMIL | Text </ p >
13
- < p id ="type "> Type: Technique | Failure </ p >
11
+ < p id ="id "> </ p >
12
+ < p id ="technology "> </ p >
13
+ < p id ="type "> </ p >
14
14
</ section >
15
15
< section id ="applicability ">
16
16
< h2 > When to Use</ h2 >
You can’t perform that action at this time.
0 commit comments