-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for generating multiple versions of BSBM dataset
- Loading branch information
Showing
3 changed files
with
45 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
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,26 @@ | ||
#!/bin/bash | ||
if [ ! -e "./generate-n" ] | ||
then | ||
echo "Please run this script from the exec directory" | ||
exit 1 | ||
fi | ||
if [ $# == 0 ] | ||
then | ||
echo "For generator options type ./generate-n -help" | ||
fi | ||
# check that $1 is a integer | ||
if ! [[ $1 =~ ^[0-9]+$ ]] | ||
then | ||
echo "Please provide an integer as the first argument" | ||
exit 1 | ||
fi | ||
|
||
number_of_versions=$1 | ||
echo "Generating $number_of_versions versions" | ||
|
||
# loop through the number of versions and call ./generate | ||
for i in $(seq 1 $number_of_versions) | ||
do | ||
echo "Generating version $i" | ||
./generate "${@:2}" | ||
done |