generate.sh: fixed handling of argument and merging of results.
This commit is contained in:
parent
ecb0a06de2
commit
2c1dd51a8f
@ -15,7 +15,7 @@
|
|||||||
#
|
#
|
||||||
# #####
|
# #####
|
||||||
|
|
||||||
ARG_START="$(echo ${1} | tr -d '-' )"
|
ARG_START="${1}"
|
||||||
|
|
||||||
fmt_date='%Y-%m-%d'
|
fmt_date='%Y-%m-%d'
|
||||||
today=`date "+${fmt_date}"`
|
today=`date "+${fmt_date}"`
|
||||||
@ -38,6 +38,7 @@ do
|
|||||||
echo "[ERROR] unknown version ${ODOO_VERSION}"
|
echo "[ERROR] unknown version ${ODOO_VERSION}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "ARG_START=${ARG_START} day=${day}"
|
||||||
|
|
||||||
echo "collecting SHA1 checksums for ${ODOO_VERSION} starting at ${day}..."
|
echo "collecting SHA1 checksums for ${ODOO_VERSION} starting at ${day}..."
|
||||||
rm -f "${ODOO_VERSION}/releases.txt.tmp"
|
rm -f "${ODOO_VERSION}/releases.txt.tmp"
|
||||||
@ -71,7 +72,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "generating ${ODOO_VERSION}/releases.txt..."
|
echo "generating ${ODOO_VERSION}/releases.txt..."
|
||||||
paste "${ODOO_VERSION}/releases.txt" "${ODOO_VERSION}/releases.txt.tmp" | sort -r | uniq > "${ODOO_VERSION}/releases.txt"
|
paste "${ODOO_VERSION}/releases.txt" "${ODOO_VERSION}/releases.txt.tmp" | sort -r | uniq > "${ODOO_VERSION}/releases.txt.out"
|
||||||
rm "${ODOO_VERSION}/releases.txt.tmp"
|
mv "${ODOO_VERSION}/releases.txt.out" "${ODOO_VERSION}/releases.txt"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user