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 #559 from jmakai/master
[CI] fixing carriage returns from github in shell script
- Loading branch information
Showing
1 changed file
with
25 additions
and
24 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,24 +1,25 @@ | ||
#!/bin/bash | ||
|
||
#------------------------------------------------------------------------------- | ||
# Publish debian artifacts on CERN Gitlab CI | ||
# Author: Jozsef Makai <jmakai@cern.ch> (11.08.2017) | ||
#------------------------------------------------------------------------------- | ||
|
||
set -e | ||
|
||
comp=$1 | ||
prefix=/eos/project/s/storage-ci/www/debian/xrootd | ||
|
||
for dist in artful; do | ||
echo "Publishing for $dist"; | ||
path=$prefix/pool/$dist/$comp/x/xrootd/; | ||
mkdir -p $path; | ||
if [["$comp" == "master"]]; then find ${path} -type f -name '*.deb' -delete; fi | ||
cp $dist/*.deb $path; | ||
(cd $prefix && apt-ftparchive --arch amd64 packages pool/$dist/$comp/ > dists/$dist/$comp/binary-amd64/Packages); | ||
gzip -c $prefix/dists/$dist/$comp/binary-amd64/Packages > $prefix/dists/$dist/$comp/binary-amd64/Packages.gz; | ||
apt-ftparchive -o APT::FTPArchive::Release::Origin=CERN -o APT::FTPArchive::Release::Label=XrootD -o APT::FTPArchive::Release::Codename=artful -o APT::FTPArchive::Release::Architectures=amd64 -o APT::FTPArchive::Release::Components="master release stable-4.7.x" release $prefix/dists/$dist/ > $prefix/dists/$dist/Release; | ||
gpg --homedir /home/stci/ --clearsign -o $prefix/dists/$dist/InRelease $prefix/dists/$dist/Release; | ||
gpg --homedir /home/stci/ -abs -o $prefix/dists/$dist/Release.gpg $prefix/dists/$dist/Release; | ||
done | ||
#!/bin/bash | ||
|
||
#------------------------------------------------------------------------------- | ||
# Publish debian artifacts on CERN Gitlab CI | ||
# Author: Jozsef Makai <jmakai@cern.ch> (11.08.2017) | ||
#------------------------------------------------------------------------------- | ||
|
||
set -e | ||
|
||
comp=$1 | ||
prefix=/eos/project/s/storage-ci/www/debian/xrootd | ||
|
||
for dist in artful; do | ||
echo "Publishing for $dist"; | ||
path=$prefix/pool/$dist/$comp/x/xrootd/; | ||
mkdir -p $path; | ||
if [["$comp" == "master"]]; then find ${path} -type f -name '*.deb' -delete; fi | ||
cp $dist/*.deb $path; | ||
mkdir -p $prefix/dists/$dist/$comp/binary-amd64/; | ||
(cd $prefix && apt-ftparchive --arch amd64 packages pool/$dist/$comp/ > dists/$dist/$comp/binary-amd64/Packages); | ||
gzip -c $prefix/dists/$dist/$comp/binary-amd64/Packages > $prefix/dists/$dist/$comp/binary-amd64/Packages.gz; | ||
apt-ftparchive -o APT::FTPArchive::Release::Origin=CERN -o APT::FTPArchive::Release::Label=XrootD -o APT::FTPArchive::Release::Codename=artful -o APT::FTPArchive::Release::Architectures=amd64 -o APT::FTPArchive::Release::Components="master release stable-4.7.x" release $prefix/dists/$dist/ > $prefix/dists/$dist/Release; | ||
gpg --homedir /home/stci/ --clearsign -o $prefix/dists/$dist/InRelease $prefix/dists/$dist/Release; | ||
gpg --homedir /home/stci/ -abs -o $prefix/dists/$dist/Release.gpg $prefix/dists/$dist/Release; | ||
done |