Commit b41fb268 authored by Alex's avatar Alex

Aufräumarbeiten

parent baa9bc6a
......@@ -207,62 +207,11 @@ if [ "$(cat ${UPLOAD_STATUS})" == "1" ]; then
# Benenne Dateien um
pruefeDateiUmbenennung "stable"
echo
verschiebeDateien ${ORDNER_STABLE}
# echo "Verschiebe neue Version"
# for i in `ls -x -1 ${ORDNER_UPLOAD}`; do
# hash="$(sha512sum ${ORDNER_UPLOAD}/$i|cut -d' ' -f1)";
# echo -n "Verschiebe Datei '$i' nach ${ORDNER_STABLE}/ ..."
# mv ${ORDNER_UPLOAD}/$i ${ORDNER_STABLE}/
# echo $hash > ${ORDNER_STABLE}/${i}.SHA-512
# echo "ok."
# done
echo
erzeugeLatestLinks $l ${ORDNER_STABLE}
# echo "Erzeuge neue latest-Links..."
# for i in "${l[@]}"; do
# a=$(echo $i|cut -d'+' -f1)
# b=$(echo $i|cut -d'+' -f2)
# if [ -L "${ORDNER_STABLE}/${a}" ]; then
# echo "Lösche latest Link '$a'"
# rm ${ORDNER_STABLE}/${a}
# fi
# echo "Erzeuge Latest-Link für '$b'"
# echo " Ziel: ${ORDNER_STABLE}/$b"
# echo -n " Name: ${ORDNER_STABLE}/$a ..."
# ln -s ${ORDNER_STABLE}/$b ${ORDNER_STABLE}/$a
# echo "ok."
# done
# echo "Lösche latest Versionen..."
# for i in `ls -x -1 ${ORDNER_STABLE}|grep MediathekView-latest-${os}*|grep -v "*.dmg*"`; do
# echo -n "Lösche Latest-Link '$i'..."
# rm ${ORDNER_STABLE}/$i
# echo "ok."
# done
#
# echo "Erzeuge neue latest-Links..."
# for i in `ls -x -1 ${ORDNER_UPLOAD}`; do
# echo "Erzeuge Latest-Link für '$i'"
# echo " Ziel: ${ORDNER_STABLE}/$i"
# echo -n " Name: ${ORDNER_STABLE}/MediathekView-latest-${os}.$(echo $i|cut -d. -f4-6) ..."
# ln -s ${ORDNER_STABLE}/$i ${ORDNER_STABLE}/MediathekView-latest-${os}.$(echo $i|cut -d. -f4-6)
# ln -s ${ORDNER_STABLE}/${i}.SHA-512 ${ORDNER_STABLE}/MediathekView-latest-${os}.$(echo $i|cut -d. -f4-6).SHA-512
# echo "ok."
# done
#
# echo "Verschiebe neue Version"
# for i in `ls -x -1 ${ORDNER_UPLOAD}`; do
# hash="$(sha512sum ${ORDNER_UPLOAD}/$i|cut -d' ' -f1)";
# echo -n "Verschiebe Datei '$i' nach ${ORDNER_STABLE}/ ..."
# mv ${ORDNER_UPLOAD}/$i ${ORDNER_STABLE}/
# echo $hash > ${ORDNER_STABLE}/${i}.SHA-512
# echo "ok."
# done
echo "" > $UPLOAD_STATUS
echo "------------------------------"
......@@ -306,11 +255,9 @@ elif [ "$(cat ${UPLOAD_STATUS})" == "2" ]; then
# Benenne Dateien um
pruefeDateiUmbenennung "nightly"
echo
verschiebeDateien ${ORDNER_UNSTABLE}
echo
erzeugeLatestLinks $l ${ORDNER_UNSTABLE}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment