-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from lldelisle/moreAutomatisationInREADME
bash script to update the README
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This bash script can be used to regenerate the README when parameters changed in tracksclasses. | ||
|
||
# Firts run the python script getAllDefaultsAndPossible.py | ||
python pygenometracks/getAllDefaultsAndPossible.py | ||
|
||
# This generates 2 tables to include in the README | ||
# First include the first one: docs/content/all_default_properties.txt | ||
awk 'NR==1,/<!--- Start of default table -->/' README.md > newREADME.md | ||
cat docs/content/all_default_properties.txt >> newREADME.md | ||
awk '/<!--- End of default table -->/{toprint = 1}toprint == 1{print}' README.md >> newREADME.md | ||
# Then include the second one: docs/content/all_possible_properties.txt | ||
awk 'NR==1,/<!--- Start of possible table -->/' newREADME.md > README.md | ||
cat docs/content/all_possible_properties.txt >> README.md | ||
awk '/<!--- End of possible table -->/{toprint = 1}toprint == 1{print}' newREADME.md >> README.md | ||
rm newREADME.md |