mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-29 00:46:45 +00:00
10 lines
594 B
Bash
Executable File
10 lines
594 B
Bash
Executable File
#!/bin/bash
|
|
# generate a target definition pointing to the locally built p2 repo from the race-analysis-p2-remote target defintion
|
|
|
|
base="../definitions/race-analysis-p2"
|
|
remote_repo="http://p2.sapsailing.com/p2/sailing/"
|
|
local_repo="file://`readlink -f ../../com.sap.sailing.targetplatform.base/target/repository/ | sed -e 's/\/cygdrive\/\(.\)/\/\1:/'`"
|
|
|
|
# replace remote p2-repo URL with local repo URL
|
|
sed -e "/^<repository location=\"/ s@$remote_repo@$local_repo@" -e 's/target name="Race Analysis Target"/target name="Race Analysis Local Target"/' $base-remote.target > $base-local.target
|