mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
36 lines
827 B
Bash
Executable File
36 lines
827 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Run this script to set up the topic stage for pushing changes to PVVTK
|
|
die() {
|
|
echo 'Failure during pvtk setup.' 1>&2
|
|
echo '---------------------------------' 1>&2
|
|
echo '' 1>&2
|
|
echo "$@" 1>&2
|
|
exit 1
|
|
}
|
|
|
|
project="PVVTK"
|
|
projectUrl="paraview.org"
|
|
|
|
# save current directory
|
|
pushd .
|
|
|
|
# enter VTK sub-directory
|
|
cd VTK
|
|
|
|
# configure PVVTK remote.
|
|
if git config remote.pvvtk.url >/dev/null; then
|
|
echo "PVTK remote was already configured."
|
|
else
|
|
echo "Configuring the remote for PVVTK..."
|
|
git remote add pvvtk git://${projectUrl}/${project}.git || \
|
|
die "Could not add the remote for PVVTK."
|
|
git config remote.pvvtk.pushurl git@${projectUrl}:${project}.git
|
|
fi
|
|
|
|
echo "Setting up git aliases for PVVTK..."
|
|
../Utilities/Scripts/SetupPVVTKGitAliases.sh || exit 1
|
|
|
|
# restore current directory
|
|
popd
|