Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit b33f0207 authored by Robert Nelson's avatar Robert Nelson
Browse files

eewiki.net: setup ship.sh script


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent a436d64c
Branches
Tags
No related merge requests found
......@@ -100,17 +100,41 @@ compression () {
if [ "x${SYST}" = "x${RELEASE_HOST}" ] ; then
if [ -d /mnt/farm/testing/pending/ ] ; then
cp -v ${export_filename}.tar /mnt/farm/testing/pending/${export_filename}.tar
cp -v arm*.tar /mnt/farm/images/
fi
fi
fi
cd ${DIR}/
}
if [ ! -f /mnt/farm/testing/pending/compress.txt ] ; then
echo "xz -z -7 -v ${export_filename}.tar" > /mnt/farm/testing/pending/compress.txt
else
echo "xz -z -7 -v ${export_filename}.tar" >> /mnt/farm/testing/pending/compress.txt
fi
production () {
echo "Starting Production Stage"
cd ${DIR}/deploy/
unset actual_dir
if [ -f ${DIR}/release ] ; then
if [ "x${SYST}" = "x${RELEASE_HOST}" ] ; then
if [ -d /mnt/farm/testing/pending/ ] ; then
cp -v arm*.tar /mnt/farm/images/
actual_dir="/mnt/farm/testing/pending"
fi
fi
fi
cat > ${DIR}/deploy/ship.sh <<-__EOF__
#!/bin/bash
xz -z -7 -v debian-7.3-${image_type}-armel-${time}.tar
xz -z -7 -v debian-7.3-${image_type}-armhf-${time}.tar
__EOF__
chmod +x ${DIR}/deploy/ship.sh
if [ ! "x${actual_dir}" = "x" ] ; then
cp ${DIR}/deploy/ship.sh ${actual_dir}/ship.sh
chmod +x ${actual_dir}/ship.sh
fi
cd ${DIR}/
}
......
......@@ -101,17 +101,43 @@ compression () {
if [ "x${SYST}" = "x${RELEASE_HOST}" ] ; then
if [ -d /mnt/farm/testing/pending/ ] ; then
cp -v ${export_filename}.tar /mnt/farm/testing/pending/${export_filename}.tar
cp -v arm*.tar /mnt/farm/images/
fi
fi
fi
cd ${DIR}/
}
if [ ! -f /mnt/farm/testing/pending/compress.txt ] ; then
echo "xz -z -7 -v ${export_filename}.tar" > /mnt/farm/testing/pending/compress.txt
else
echo "xz -z -7 -v ${export_filename}.tar" >> /mnt/farm/testing/pending/compress.txt
fi
production () {
echo "Starting Production Stage"
cd ${DIR}/deploy/
unset actual_dir
if [ -f ${DIR}/release ] ; then
if [ "x${SYST}" = "x${RELEASE_HOST}" ] ; then
if [ -d /mnt/farm/testing/pending/ ] ; then
cp -v arm*.tar /mnt/farm/images/
actual_dir="/mnt/farm/testing/pending"
fi
fi
fi
cat > ${DIR}/deploy/ship.sh <<-__EOF__
#!/bin/bash
xz -z -7 -v debian-7.3-${image_type}-armel-${time}.tar
xz -z -7 -v debian-7.3-${image_type}-armhf-${time}.tar
xz -z -7 -v ubuntu-13.10-${image_type}-armhf-${time}.tar
__EOF__
chmod +x ${DIR}/deploy/ship.sh
if [ ! "x${actual_dir}" = "x" ] ; then
cp ${DIR}/deploy/ship.sh ${actual_dir}/ship.sh
chmod +x ${actual_dir}/ship.sh
fi
cd ${DIR}/
}
......@@ -255,4 +281,8 @@ wheezy_release
saucy_release
#trusty_release
production
rm -rf ${tempdir} || true
echo "done"
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