VERSION=`basename \`pwd\``
ROOT_VERSION=${VERSION/\.y/}
ROOT_VERSION=${ROOT_VERSION/linux-/}
+
+REL_ARRAY=(${FULL_VERSION//./ })
+MAJOR=${REL_ARRAY[0]}
+VER="${MAJOR}.0"
+
DATE=`date -u --date="2 days"`
if [ ${FULL_VERSION} == ${BASE_VERSION} ] ; then
echo "Anything received after that time might be too late."
echo ""
echo "The whole patch series can be found in one patch at:"
-echo " kernel.org/pub/linux/kernel/v3.0/stable-review/patch-${FULL_VERSION}.gz"
+echo " kernel.org/pub/linux/kernel/v${VER}/stable-review/patch-${FULL_VERSION}.gz"
echo "and the diffstat can be found below."
echo ""
echo "thanks,"
# Create a script to upload the patch to kernel.org and to send the patches out
echo "#!/bin/bash" > ${TMP_DIR}/send_it_off
-echo "kup --host=gregkh@geb.kernel.org put patch-${FULL_VERSION} patch-${FULL_VERSION}.asc /pub/linux/kernel/v3.0/stable-review/patch-${FULL_VERSION}.gz" >> ${TMP_DIR}/send_it_off
+echo "kup --host=gregkh@geb.kernel.org put patch-${FULL_VERSION} patch-${FULL_VERSION}.asc /pub/linux/kernel/v${VER}/stable-review/patch-${FULL_VERSION}.gz" >> ${TMP_DIR}/send_it_off
echo "git send-email msg.*" >> ${TMP_DIR}/send_it_off
chmod 755 ${TMP_DIR}/send_it_off