This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
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 #35 from PeterJohnson/update-2019
Update for 2019 binary changes
- Loading branch information
Showing
7 changed files
with
179 additions
and
39 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "cscore_src"] | ||
path = cscore_src | ||
url = https://github.com/robotpy/cscore.git | ||
[submodule "wpiutil_src"] | ||
path = wpiutil_src | ||
url = https://github.com/wpilibsuite/wpiutil.git |
Submodule cscore_src
updated
589 files
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,39 @@ | ||
#!/bin/bash -e | ||
# | ||
# Assumes that the allwpilib repo is checked out to the correct branch | ||
# that needs to be added to this repo | ||
# | ||
# This script is only intended to be used by maintainers of this | ||
# repository, users should not need to use it. | ||
# | ||
|
||
abspath() { | ||
# $1 : relative filename | ||
echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" | ||
} | ||
|
||
if [ "$1" == "" ]; then | ||
echo "Usage: $0 /path/to/allwpilib" | ||
exit 1 | ||
fi | ||
|
||
ALLWPILIB=$(abspath "$1") | ||
CSCORE_SRC=$(abspath "$(dirname "$0")/../cscore_src") | ||
|
||
cd "$ALLWPILIB" | ||
|
||
ORIG_BRANCH="$(git symbolic-ref HEAD 2>/dev/null)" | ||
|
||
git checkout -b CSCORE_TMP | ||
|
||
# TODO: this takes awhile | ||
git filter-branch -f --index-filter 'git rm --cached -qr --ignore-unmatch -- . && git reset -q $GIT_COMMIT -- cscore wpiutil' --prune-empty | ||
|
||
cd "$CSCORE_SRC" | ||
|
||
git pull "$ALLWPILIB" CSCORE_TMP | ||
|
||
cd "$ALLWPILIB" | ||
|
||
git checkout $ORIG_BRANCH | ||
git branch -D CSCORE_TMP |
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
Oops, something went wrong.