We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c013297 commit a17d9eaCopy full SHA for a17d9ea
create_theme.sh
@@ -0,0 +1,20 @@
1
+#! /bin/bash
2
+
3
+DIR="$1"
4
5
+if [ $# -ne 1 ]
6
+then
7
+ echo "Usage: $0 {new extension key}"
8
+ exit 1
9
+fi
10
11
+if [ -d "../$DIR" ]
12
13
+ echo "Directory/extension '$DIR' exists already!"
14
+else
15
+ cp -rf "../modernpackage" "../$DIR"
16
+ echo "$DIR created."
17
+ cd ../$DIR && grep -rl modernpackage . |xargs sed -i -e "s/modernpackage/$DIR/"
18
+ echo "Changed all occurrences of modernpackage to $DIR."
19
+ echo "Have fun with your theme!"
20
0 commit comments