Skip to content

Commit 5c8749f

Browse files
author
Michael Cooper
committed
Move technique setup script to master
Squashed commit of the following: commit 819ce71 Author: Michael Cooper <[email protected]> Date: Fri Jun 22 10:39:02 2018 -0400 remove orphan branch and looping from technique script commit f548525 Author: michael-n-cooper <[email protected]> Date: Tue May 8 22:19:25 2018 -0400 make live again commit 1cbd70a Author: michael-n-cooper <[email protected]> Date: Tue May 8 22:16:49 2018 -0400 more commit c964ef7 Author: michael-n-cooper <[email protected]> Date: Tue May 8 22:14:51 2018 -0400 some corrections commit 66a3340 Author: michael-n-cooper <[email protected]> Date: Tue May 8 20:51:18 2018 -0400 add metadata support commit a6f503d Author: michael-n-cooper <[email protected]> Date: Fri May 4 17:19:40 2018 -0400 update technique template for better automation commit 7b31098 Author: michael-n-cooper <[email protected]> Date: Wed May 2 16:57:41 2018 -0400 turn on the final git commands commit 542c9d5 Author: michael-n-cooper <[email protected]> Date: Wed May 2 16:57:21 2018 -0400 change dir parameters commit bba8d84 Author: michael-n-cooper <[email protected]> Date: Wed May 2 16:56:28 2018 -0400 move script to top of repo to have less dir problems commit b4cc31e Author: michael-n-cooper <[email protected]> Date: Wed May 2 16:38:39 2018 -0400 add only the created file commit 2847a4e Author: michael-n-cooper <[email protected]> Date: Wed May 2 15:45:35 2018 -0400 now commit the technique commit 69dc4f3 Author: michael-n-cooper <[email protected]> Date: Wed May 2 15:42:12 2018 -0400 add a mkdir commit 85b0890 Author: michael-n-cooper <[email protected]> Date: Wed May 2 15:37:33 2018 -0400 make some of the script live commit 3410351 Author: michael-n-cooper <[email protected]> Date: Wed May 2 15:36:45 2018 -0400 filling out the script commit 6c263fd Author: michael-n-cooper <[email protected]> Date: Wed May 2 15:14:33 2018 -0400 set up script to create technique branches
1 parent 4cd18f5 commit 5c8749f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

create-techniques.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# $1 = technology
3+
# $2 = filename
4+
# $3 = type
5+
# $4 = title
6+
git checkout -b tech-$2
7+
mkdir techniques/$1
8+
cp techniques/technique-template.html techniques/$1/$2.html
9+
sed -i "s|<p id=\"technology\"></p>|<p id=\"technology\">$1</p>|" techniques/$1/$2.html
10+
sed -i "s|<p id=\"type\"></p>|<p id=\"type\">$3</p>|" techniques/$1/$2.html
11+
sed -i "s|Technique Title|$4|g" techniques/$1/$2.html
12+
git add techniques/$1/$2.html
13+
git commit -m "Set up $2 technique"
14+
git push --set-upstream origin tech-$2
15+
git checkout master

techniques/technique-template.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<h1>Technique Title</h1>
99
<section id="meta">
1010
<h2>Metadata</h2>
11-
<p id="id">ID: W##</p>
12-
<p id="technology">Technology: ARIA | CSS | General | HTML | PDF | Script | Server | 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>
1414
</section>
1515
<section id="applicability">
1616
<h2>When to Use</h2>

0 commit comments

Comments
 (0)