|
@ -45,6 +45,12 @@ do |
|
|
shift |
|
|
shift |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
if [ ! "$have_image" -gt 0 ] ; then |
|
|
|
|
|
echo "please provide a release image" |
|
|
|
|
|
usage |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# Do we have a desired version number? |
|
|
# Do we have a desired version number? |
|
|
if [ "$have_version" -gt 0 ] ; then |
|
|
if [ "$have_version" -gt 0 ] ; then |
|
|
echo "trying to build version $version" |
|
|
echo "trying to build version $version" |
|
@ -55,7 +61,7 @@ else |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# Version number sanity check |
|
|
# Version number sanity check |
|
|
if grep ${version} NEWS |
|
|
|
|
|
|
|
|
if grep "${version}" NEWS |
|
|
then |
|
|
then |
|
|
echo "configurations seems ok" |
|
|
echo "configurations seems ok" |
|
|
else |
|
|
else |
|
@ -82,24 +88,24 @@ echo " are you fine with the following version bump?" |
|
|
echo "======================================================" |
|
|
echo "======================================================" |
|
|
git diff |
|
|
git diff |
|
|
echo "======================================================" |
|
|
echo "======================================================" |
|
|
read -p " Press enter to continue" |
|
|
|
|
|
|
|
|
read -r -p " Press enter to continue" |
|
|
echo "======================================================" |
|
|
echo "======================================================" |
|
|
|
|
|
|
|
|
filesize=$(wc -c <"${RELEASE_IMAGE}") |
|
|
filesize=$(wc -c <"${RELEASE_IMAGE}") |
|
|
reference_filesize=4194304 |
|
|
reference_filesize=4194304 |
|
|
if [ ! $filesize -eq "$reference_filesize" ] ; then |
|
|
|
|
|
|
|
|
if [ ! "$filesize" -eq "$reference_filesize" ] ; then |
|
|
echo "filesize of release image is wrong" |
|
|
echo "filesize of release image is wrong" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
# copy-in the ROM |
|
|
# copy-in the ROM |
|
|
cp ${RELEASE_IMAGE} . |
|
|
|
|
|
|
|
|
cp "${RELEASE_IMAGE}" . |
|
|
RELEASE_IMAGE_FILE=$(basename "${RELEASE_IMAGE}") |
|
|
RELEASE_IMAGE_FILE=$(basename "${RELEASE_IMAGE}") |
|
|
|
|
|
|
|
|
# copy-in device independent stuff |
|
|
# copy-in device independent stuff |
|
|
cp ../SOURCE.md sources/ |
|
|
cp ../SOURCE.md sources/ |
|
|
|
|
|
|
|
|
tar -cJf skulls-x230-${version}.tar.xz \ |
|
|
|
|
|
|
|
|
tar -cJf skulls-x230-"${version}".tar.xz \ |
|
|
README.md \ |
|
|
README.md \ |
|
|
NEWS \ |
|
|
NEWS \ |
|
|
util \ |
|
|
util \ |
|
@ -110,14 +116,14 @@ tar -cJf skulls-x230-${version}.tar.xz \ |
|
|
external_install_bottom.sh \ |
|
|
external_install_bottom.sh \ |
|
|
external_install_top.sh \ |
|
|
external_install_top.sh \ |
|
|
sources \ |
|
|
sources \ |
|
|
${RELEASE_IMAGE_FILE} |
|
|
|
|
|
|
|
|
"${RELEASE_IMAGE_FILE}" |
|
|
|
|
|
|
|
|
rm ${RELEASE_IMAGE_FILE} |
|
|
|
|
|
|
|
|
rm "${RELEASE_IMAGE_FILE}" |
|
|
rm sources/SOURCE.md |
|
|
rm sources/SOURCE.md |
|
|
|
|
|
|
|
|
git commit -a -m "update to ${version}" |
|
|
git commit -a -m "update to ${version}" |
|
|
git tag -s ${version} -m "skulls-x230 ${version}" |
|
|
|
|
|
|
|
|
git tag -s "${version}" -m "skulls-x230 ${version}" |
|
|
|
|
|
|
|
|
sha256sum skulls-x230-${version}.tar.xz > skulls-x230-${version}.tar.xz.sha256 |
|
|
|
|
|
sha512sum skulls-x230-${version}.tar.xz > skulls-x230-${version}.tar.xz.sha512 |
|
|
|
|
|
gpg -b -a skulls-x230-${version}.tar.xz |
|
|
|
|
|
|
|
|
sha256sum skulls-x230-"${version}".tar.xz > skulls-x230-"${version}".tar.xz.sha256 |
|
|
|
|
|
sha512sum skulls-x230-"${version}".tar.xz > skulls-x230-"${version}".tar.xz.sha512 |
|
|
|
|
|
gpg -b -a skulls-x230-"${version}".tar.xz |