Skip to content

Commit

Permalink
Consider the notion of private goals #31 rfct
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Aug 17, 2021
1 parent eb73fe9 commit ec06f2d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Makesurefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,15 @@
@depends_on tests/15_private.tush

@goal stable
@doc prepares for release
@depends_on makesure_stable README.md

@goal README.md
@doc updates README with actual makesure help output
@doc rebuilds makesure_stable & README.md for release
@depends_on makesure_stable
awk '
/^\$ \.\/makesure -h$/ { print; stop=1; system("./makesure_stable -h") }
/^```$/ { stop=0 }
!stop' README.md > README.md.1
mv README.md.1 README.md

@goal makesure_stable
@goal makesure_stable @private
@doc compiles makesure_stable
@depends_on tested
OUT=makesure_stable
Expand All @@ -137,7 +133,7 @@
} > $OUT

@goal default
@doc by default just runs tests
@doc calls tested goal
@depends_on tested

@goal tested_awks
Expand Down

0 comments on commit ec06f2d

Please sign in to comment.