Skip to content

Commit

Permalink
publish: generate *.sha256sum
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Sep 16, 2015
1 parent cbc61eb commit 3050eac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions publish/rcn-ee_bb.org-jessie-3.14-ti.sh
Expand Up @@ -43,15 +43,15 @@ cat > ${DIR}/deploy/gift_wrap_final_images.sh <<-__EOF__
#!/bin/bash
copy_base_rootfs_to_mirror () {
if [ -d ${mirror_dir} ] ; then
if [ -d ${mirror_dir}/ ] ; then
if [ ! -d ${mirror_dir}/${time}/\${blend}/ ] ; then
mkdir -p ${mirror_dir}/${time}/\${blend}/ || true
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${base_rootfs}.tar.xz ] ; then
cp -v \${base_rootfs}.tar ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${base_rootfs}.tar &
${archive} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.zx > \${base_rootfs}.tar.zx.sha256sum &
cd -
fi
fi
Expand Down Expand Up @@ -91,7 +91,7 @@ copy_img_to_mirror () {
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img &
${archive} \${wfile}.img && sha256sum \${wfile}.img.zx > \${wfile}.img.zx.sha256sum &
cd -
fi
fi
Expand Down
6 changes: 3 additions & 3 deletions publish/rcn-ee_bb.org-stable.sh
Expand Up @@ -49,15 +49,15 @@ cat > ${DIR}/deploy/gift_wrap_final_images.sh <<-__EOF__
#!/bin/bash
copy_base_rootfs_to_mirror () {
if [ -d ${mirror_dir} ] ; then
if [ -d ${mirror_dir}/ ] ; then
if [ ! -d ${mirror_dir}/${time}/\${blend}/ ] ; then
mkdir -p ${mirror_dir}/${time}/\${blend}/ || true
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${base_rootfs}.tar.xz ] ; then
cp -v \${base_rootfs}.tar ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${base_rootfs}.tar &
${archive} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.zx > \${base_rootfs}.tar.zx.sha256sum &
cd -
fi
fi
Expand Down Expand Up @@ -97,7 +97,7 @@ copy_img_to_mirror () {
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img &
${archive} \${wfile}.img && sha256sum \${wfile}.img.zx > \${wfile}.img.zx.sha256sum &
cd -
fi
fi
Expand Down
6 changes: 3 additions & 3 deletions publish/rcn-ee_bb.org-wheezy.sh
Expand Up @@ -38,15 +38,15 @@ cat > ${DIR}/deploy/gift_wrap_final_images.sh <<-__EOF__
#!/bin/bash
copy_base_rootfs_to_mirror () {
if [ -d ${mirror_dir} ] ; then
if [ -d ${mirror_dir}/ ] ; then
if [ ! -d ${mirror_dir}/${time}/\${blend}/ ] ; then
mkdir -p ${mirror_dir}/${time}/\${blend}/ || true
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${base_rootfs}.tar.xz ] ; then
cp -v \${base_rootfs}.tar ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${base_rootfs}.tar &
${archive} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.zx > \${base_rootfs}.tar.zx.sha256sum &
cd -
fi
fi
Expand Down Expand Up @@ -86,7 +86,7 @@ copy_img_to_mirror () {
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img &
${archive} \${wfile}.img && sha256sum \${wfile}.img.zx > \${wfile}.img.zx.sha256sum &
cd -
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion publish/rcn-ee_eewiki.sh
Expand Up @@ -35,7 +35,7 @@ copy_base_rootfs_to_mirror () {
if [ ! -f ${mirror_dir}/\${blend}/\${base_rootfs}.tar.xz ] ; then
cp -v \${base_rootfs}.tar ${mirror_dir}/\${blend}/
cd ${mirror_dir}/\${blend}/
${archive} \${base_rootfs}.tar &
${archive} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.zx > \${base_rootfs}.tar.zx.sha256sum &
cd -
fi
fi
Expand Down
6 changes: 3 additions & 3 deletions publish/rcn-ee_elinux.sh
Expand Up @@ -24,15 +24,15 @@ cat > ${DIR}/deploy/gift_wrap_final_images.sh <<-__EOF__
#!/bin/bash
copy_base_rootfs_to_mirror () {
if [ -d ${mirror_dir} ] ; then
if [ -d ${mirror_dir}/ ] ; then
if [ ! -d ${mirror_dir}/${time}/\${blend}/ ] ; then
mkdir -p ${mirror_dir}/${time}/\${blend}/ || true
fi
if [ -d ${mirror_dir}/${time}/\${blend}/ ] ; then
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${base_rootfs}.tar.xz ] ; then
cp -v \${base_rootfs}.tar ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${base_rootfs}.tar &
${archive} \${base_rootfs}.tar && sha256sum \${base_rootfs}.tar.zx > \${base_rootfs}.tar.zx.sha256sum &
cd -
fi
fi
Expand Down Expand Up @@ -72,7 +72,7 @@ copy_img_to_mirror () {
if [ ! -f ${mirror_dir}/${time}/\${blend}/\${wfile}.img.zx ] ; then
cp -v \${wfile}.img ${mirror_dir}/${time}/\${blend}/
cd ${mirror_dir}/${time}/\${blend}/
${archive} \${wfile}.img &
${archive} \${wfile}.img && sha256sum \${wfile}.img.zx > \${wfile}.img.zx.sha256sum &
cd -
fi
fi
Expand Down

2 comments on commit 3050eac

@jadonk
Copy link
Member

@jadonk jadonk commented on 3050eac Sep 16, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to create sha256sum files for the images on builds.beagleboard.org as well?

@RobertCNelson
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed ;)

Please sign in to comment.