Commit 6ac44881 authored by Rafał Pachołek's avatar Rafał Pachołek
Browse files

Start automatise source download

parent 0a8e288d
echo "The following sources will be installed:"
ls -1 sources
read -p "Should we procceed? [y/n]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
scp sources/* sftnight@lcgapp-slc6-physical2:/eos/project/l/lcg/www/lcgpackages/tarFiles/sources/
read -p "Should we delete the sources? [y/n]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
rm -rf sources
fi
fi
#!/usr/bin/env bash
shopt -s extglob
VERSION=$1
wget -P nxcals/ http://artifactory.cern.ch/ds-release-local/cern/nxcals/nxcals-data-access/${VERSION}/nxcals-data-access-${VERSION}.jar
wget -P nxcals/ http://artifactory.cern.ch/ds-release-local/cern/nxcals/nxcals-data-access/${VERSION}/nxcals-data-access-${VERSION}.pom
mkdir -p sources
tar -czvf sources/accsoft-nxcals-data-access-${VERSION}.tar.gz nxcals
pushd nxcals
rm !(settings.xml)
popd
git clone https://gitlab.cern.ch/acc-logging-team/nxcals.git nxcals-repo
pushd nxcals-repo
git checkout RELEASE-${VERSION}
tar -czvf ../sources/accsoft-nxcals-data-access-python-${VERSION}.tar.gz data-access-python3
popd
rm -rf nxcals-repo
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>nxcals-repo</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>artifactory</id>
<name>CERN BE-CO artifactory</name>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<url>http://artifactory.cern.ch/ds-release</url>
<layout>default</layout>
</repository>
</repositories>
</profile>
</profiles>
</settings>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment