mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-21 21:25:38 +00:00
Fixed line ending problem
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
#!/bin/bash
|
||||
# see http://wiki.eclipse.org/Equinox/p2/Publisher for documentation
|
||||
|
||||
set -u
|
||||
|
||||
if [ "$ECLIPSE_HOME" = "" ]; then
|
||||
ECLIPSE_BIN=`which eclipse`
|
||||
ECLIPSE_HOME="`dirname $ECLIPSE_BIN`"
|
||||
fi
|
||||
|
||||
SAILING_GIT_HOME="`pwd`/../../.."
|
||||
|
||||
TARGET_PLATFORM_BASE_DIR=${SAILING_GIT_HOME}/java/com.sap.sailing.targetplatform.base
|
||||
ECLIPSE_VM_ARGS="-Xmx256m"
|
||||
ECLIPSE_LAUNCHER=${ECLIPSE_HOME}/plugins/org.eclipse.equinox.launcher_*.jar
|
||||
|
||||
echo "Deploying metadata to $TARGET_PLATFORM_BASE_DIR/gen/p2..."
|
||||
|
||||
java -jar ${ECLIPSE_LAUNCHER} -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \
|
||||
-metadataRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-artifactRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-source ${TARGET_PLATFORM_BASE_DIR} \
|
||||
-publishArtifacts -publishArtifactRepository -compress -noDefaultIUs -vmargs ${ECLIPSE_VM_ARGS}
|
||||
#!/bin/bash
|
||||
# see http://wiki.eclipse.org/Equinox/p2/Publisher for documentation
|
||||
|
||||
if [ "$ECLIPSE_HOME" = "" ]; then
|
||||
ECLIPSE_BIN=`which eclipse`
|
||||
ECLIPSE_HOME="`dirname $ECLIPSE_BIN`"
|
||||
fi
|
||||
|
||||
SAILING_GIT_HOME="`pwd`/../../.."
|
||||
|
||||
TARGET_PLATFORM_BASE_DIR=${SAILING_GIT_HOME}/java/com.sap.sailing.targetplatform.base
|
||||
ECLIPSE_VM_ARGS="-Xmx256m"
|
||||
ECLIPSE_LAUNCHER=${ECLIPSE_HOME}/plugins/org.eclipse.equinox.launcher_*.jar
|
||||
|
||||
echo "Deploying metadata to $TARGET_PLATFORM_BASE_DIR/gen/p2..."
|
||||
|
||||
java -jar ${ECLIPSE_LAUNCHER} -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.UpdateSitePublisher \
|
||||
-metadataRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-artifactRepository file:/${TARGET_PLATFORM_BASE_DIR}/gen/p2 \
|
||||
-source ${TARGET_PLATFORM_BASE_DIR} \
|
||||
-publishArtifacts -publishArtifactRepository -compress -noDefaultIUs -vmargs ${ECLIPSE_VM_ARGS}
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Uploads repository to centralized location
|
||||
# Make sure to have called ./createLocalBaseP2RepositoryLinux.sh before
|
||||
# and make sure to have activated local-p2-admin target to check
|
||||
# if everything went well
|
||||
|
||||
set -u
|
||||
|
||||
USER="trac"
|
||||
SERVER="sapsailing.com"
|
||||
REPO_HOME="/home/trac/p2-repositories"
|
||||
|
||||
DATE=`date +%s`
|
||||
|
||||
echo "Performing backup of old repository to $REPO_HOME/sailing.backup.$DATE..."
|
||||
ssh $USER@$SERVER "cp -r $REPO_HOME/sailing $REPO_HOME/sailing.backup.$DATE"
|
||||
|
||||
echo "Removing old p2-repository"
|
||||
ssh $USER@$SERVER "rm -rf $REPO_HOME/sailing"
|
||||
|
||||
echo "Uploading local repository to $REPO_HOME/sailing"
|
||||
scp -r ../../com.sap.sailing.targetplatform.base/gen/p2 $USER@$SERVER:$REPO_HOME/sailing
|
||||
|
||||
echo "Remote files now available:"
|
||||
ssh $USER@$SERVER "ls -lah $REPO_HOME/sailing"
|
||||
|
||||
echo ""
|
||||
echo "Make SURE to notify developers that they need to update their target platform!!!"
|
||||
#!/bin/bash
|
||||
# Uploads repository to centralized location
|
||||
# Make sure to have called ./createLocalBaseP2RepositoryLinux.sh before
|
||||
# and make sure to have activated local-p2-admin target to check
|
||||
# if everything went well
|
||||
|
||||
set -u
|
||||
|
||||
USER="trac"
|
||||
SERVER="sapsailing.com"
|
||||
REPO_HOME="/home/trac/p2-repositories"
|
||||
|
||||
DATE=`date +%s`
|
||||
|
||||
echo "Performing backup of old repository to $REPO_HOME/sailing.backup.$DATE..."
|
||||
ssh $USER@$SERVER "cp -r $REPO_HOME/sailing $REPO_HOME/sailing.backup.$DATE"
|
||||
|
||||
echo "Removing old p2-repository"
|
||||
ssh $USER@$SERVER "rm -rf $REPO_HOME/sailing"
|
||||
|
||||
echo "Uploading local repository to $REPO_HOME/sailing"
|
||||
scp -r ../../com.sap.sailing.targetplatform.base/gen/p2 $USER@$SERVER:$REPO_HOME/sailing
|
||||
|
||||
echo "Remote files now available:"
|
||||
ssh $USER@$SERVER "ls -lah $REPO_HOME/sailing"
|
||||
|
||||
echo ""
|
||||
echo "Make SURE to notify developers that they need to update their target platform!!!"
|
||||
|
||||
Reference in New Issue
Block a user