MAJOR=${REL_ARRAY[0]}
VER="${MAJOR}.x"
+RC_ARRAY=(${FULL_VERSION//-/ })
+RC=${RC_ARRAY[1]}
+
#DATE=`date -u --date="2 days"`
DATE=`date -u --rfc-822 --date="2 days"`
# 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=git@gitolite.kernel.org --subcmd=kup-server 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
-echo "#git send-email msg.000" >> ${TMP_DIR}/send_it_off
+
+if [ "${RC}" == "rc1" ] ; then
+ echo "git send-email msg.*" >> ${TMP_DIR}/send_it_off
+ echo "#git send-email msg.000" >> ${TMP_DIR}/send_it_off
+else
+ echo "#git send-email msg.*" >> ${TMP_DIR}/send_it_off
+ echo "git send-email msg.000" >> ${TMP_DIR}/send_it_off
+fi
+
chmod 755 ${TMP_DIR}/send_it_off