File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,18 @@ set -o pipefail
5
5
OLD_CHAPTER=$1
6
6
NEW_NAME=$2
7
7
8
- # git mv "$OLD_CHAPTER.asciidoc" "$NEW_NAME.asciidoc"
9
- # git mv "tests/test_$OLD_CHAPTER.py" "tests/test_$NEW_NAME.py"
10
- #
11
- # git mv "source/$OLD_CHAPTER" "source/$NEW_NAME"
12
- #
13
- # cd "source/$NEW_NAME/superlists"
14
- # git checkout "$OLD_CHAPTER"
15
- # git checkout -b "$NEW_NAME"
16
- # git push -u local
17
- # git push -u origin
18
- # cd ../../..
8
+ git mv " $OLD_CHAPTER .asciidoc" " $NEW_NAME .asciidoc"
9
+ mv " $OLD_CHAPTER .html" " $NEW_NAME .html" || touch " $NEW_NAME .html"
10
+ git mv " tests/test_$OLD_CHAPTER .py" " tests/test_$NEW_NAME .py"
11
+
12
+ git mv " source/$OLD_CHAPTER " " source/$NEW_NAME "
13
+
14
+ cd " source/$NEW_NAME /superlists"
15
+ git checkout " $OLD_CHAPTER "
16
+ git checkout -b " $NEW_NAME "
17
+ git push -u local
18
+ git push -u origin
19
+ cd ../../..
19
20
20
21
git grep -l " $OLD_CHAPTER " | xargs sed -i ' ' " s/$OLD_CHAPTER /$NEW_NAME /g"
21
22
You can’t perform that action at this time.
0 commit comments