From 3050eac1a6463a52e847607f60d3f517c3619170 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 16 Sep 2015 08:59:10 -0500 Subject: [PATCH] publish: generate *.sha256sum Signed-off-by: Robert Nelson --- publish/rcn-ee_bb.org-jessie-3.14-ti.sh | 6 +++--- publish/rcn-ee_bb.org-stable.sh | 6 +++--- publish/rcn-ee_bb.org-wheezy.sh | 6 +++--- publish/rcn-ee_eewiki.sh | 2 +- publish/rcn-ee_elinux.sh | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/publish/rcn-ee_bb.org-jessie-3.14-ti.sh b/publish/rcn-ee_bb.org-jessie-3.14-ti.sh index 3129c82eb..6e44628cb 100755 --- a/publish/rcn-ee_bb.org-jessie-3.14-ti.sh +++ b/publish/rcn-ee_bb.org-jessie-3.14-ti.sh @@ -43,7 +43,7 @@ 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 @@ -51,7 +51,7 @@ copy_base_rootfs_to_mirror () { 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 @@ -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 diff --git a/publish/rcn-ee_bb.org-stable.sh b/publish/rcn-ee_bb.org-stable.sh index 4254a823b..feb700487 100755 --- a/publish/rcn-ee_bb.org-stable.sh +++ b/publish/rcn-ee_bb.org-stable.sh @@ -49,7 +49,7 @@ 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 @@ -57,7 +57,7 @@ copy_base_rootfs_to_mirror () { 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 @@ -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 diff --git a/publish/rcn-ee_bb.org-wheezy.sh b/publish/rcn-ee_bb.org-wheezy.sh index 60be91fe0..c49e96620 100755 --- a/publish/rcn-ee_bb.org-wheezy.sh +++ b/publish/rcn-ee_bb.org-wheezy.sh @@ -38,7 +38,7 @@ 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 @@ -46,7 +46,7 @@ copy_base_rootfs_to_mirror () { 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 @@ -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 diff --git a/publish/rcn-ee_eewiki.sh b/publish/rcn-ee_eewiki.sh index 99a9fb003..f7549c5ed 100755 --- a/publish/rcn-ee_eewiki.sh +++ b/publish/rcn-ee_eewiki.sh @@ -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 diff --git a/publish/rcn-ee_elinux.sh b/publish/rcn-ee_elinux.sh index cd33797b8..2c4913c1b 100755 --- a/publish/rcn-ee_elinux.sh +++ b/publish/rcn-ee_elinux.sh @@ -24,7 +24,7 @@ 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 @@ -32,7 +32,7 @@ copy_base_rootfs_to_mirror () { 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 @@ -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