forked from CVMix/CVMix-src
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inputdata used to rely on svn hooks to github
Updated some scripts to use git sparse checkout instead, also scripts exit when error occurs instead of happily continuing beyond errors
- Loading branch information
1 parent
13c72ce
commit 3e053e1
Showing
4 changed files
with
23 additions
and
6 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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
check_inputdata () { | ||
|
||
DATA_REPO=https://github.com/CVMix/CVMix-data/trunk/ | ||
|
||
cd ${INPUTDATA_DIR} | ||
ALL_FOUND=TRUE | ||
for file in "$@"; do | ||
echo "Looking for $file..." | ||
if [ -e ${INPUTDATA_DIR}/$file ]; then | ||
if [ -e $file ]; then | ||
echo "Found!" | ||
else | ||
svn export ${DATA_REPO}/$file ${INPUTDATA_DIR}/$file | ||
echo "... Downloaded!" | ||
echo "${file}" >> .git/info/sparse-checkout | ||
ALL_FOUND=FALSE | ||
echo "... added to sparse-checkout!" | ||
fi | ||
done | ||
|
||
} | ||
if [ "${ALL_FOUND}" == "FALSE" ]; then | ||
git checkout master | ||
fi | ||
|
||
} |
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,9 @@ | ||
#!/bin/bash -e | ||
# Since github dropped support for svn hooks, now need to set up | ||
# a sparse checkout to get inputdata. | ||
# NOTE: this script must be run from ${CVMIX_ROOT}! | ||
|
||
cd inputdata | ||
git init | ||
git config core.sparseCheckout true | ||
git remote add -f CVMix-data https://github.com/CVMix/CVMix-data.git |
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,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/bash -e | ||
|
||
# (1) Load required routines | ||
. ../common/environ.sh | ||
|