소스 검색

* Don't rebuild a nightly build if the build date is the same as the uploaded one

svn: 1548
Bryan Drewery 21 년 전
부모
커밋
6dcbfe01e5
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      build

+ 8 - 0
build

@@ -141,6 +141,14 @@ then
   echo "[!] Automated packaging disabled, `uname` isn't recognized"
   echo "[!] Automated packaging disabled, `uname` isn't recognized"
 fi
 fi
 
 
+if ! [ $scp = 0 ]; then
+  remotedate="`ssh -q -i misc/id_dsa bryan@endurance.quadspeedi.net ls -al public_html/nightly/${os}-current.tar.gz | \
+             sed -e 's/.*\-> \([0-1][0-2]\.[0-3][0-9]\.[0-9][0-9][0-9][0-9]\)\-.*/\1/'`"
+  if [ ${remotedate} = ${builddate} ]; then
+    exit 0
+  fi
+fi
+
 if [ $compile = "1" ]; then
 if [ $compile = "1" ]; then
 
 
  echo "[*] Building ${PACKNAME}::${type} for $os"
  echo "[*] Building ${PACKNAME}::${type} for $os"