-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
@glob
goals to be parameterized #155
- Loading branch information
Showing
5 changed files
with
54 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
```shell | ||
@goal gpg @glob 'glob_test/*.txt' @params P | ||
echo "$ITEM $P" | ||
|
||
@goal g1 | ||
@depends_on gpg @args 'hello' | ||
``` | ||
|
||
-> | ||
|
||
```shell | ||
@goal gpg @params P | ||
@depends_on 'gpg@glob_test/1.txt' @args P | ||
@depends_on 'gpg@glob_test/2.txt' @args P | ||
|
||
@goal 'gpg@glob_test/1.txt' @params P | ||
echo "$ITEM $P" | ||
@goal 'gpg@glob_test/2.txt' @params P | ||
echo "$ITEM $P" | ||
|
||
@goal g1 | ||
@depends_on gpg @args 'hello' | ||
``` |
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 |
---|---|---|
@@ -1,8 +1,16 @@ | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg.sh -l | ||
$ ./$MAKESURE -f tests/29_glob_plus_pg_1.sh -l | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg.sh g1 | ||
$ ./$MAKESURE -f tests/29_glob_plus_pg_1.sh g1 | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg.sh g2 | ||
$ ./$MAKESURE -f tests/29_glob_plus_pg_1.sh g2 | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg.sh g3 | ||
$ ./$MAKESURE -f tests/29_glob_plus_pg_1.sh g3 | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg_2.sh -l | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg_2.sh g1 | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg_2.sh g2 | ||
|
||
$ ./$MAKESURE -f tests/29_glob_plus_pg_2.sh g3 |
File renamed without changes.
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,16 @@ | ||
|
||
@goal @glob 'glob_test/*.txt' @params P | ||
echo "$ITEM $P" | ||
|
||
@goal g1 | ||
@depends_on 'glob_test/*.txt' @args 'hello' | ||
|
||
@goal g2 | ||
@depends_on 'glob_test/*.txt' @args 'hello' | ||
@depends_on 'glob_test/*.txt' @args 'hi' | ||
|
||
@goal g3 | ||
@depends_on g3pg @args 'salut' | ||
|
||
@goal g3pg @params X | ||
@depends_on 'glob_test/*.txt' @args X |