Quellcode durchsuchen

* Added scripts for nightly builds to http://www.shatow.net/nightly/

svn: 1538
Bryan Drewery vor 21 Jahren
Ursprung
Commit
8d63e98056
1 geänderte Dateien mit 26 neuen und 10 gelöschten Zeilen
  1. 26 10
      build

+ 26 - 10
build

@@ -197,20 +197,22 @@ else
 fi
 fi
 _build
 _build
 
 
+if [ $bzip = "1" ]; then
+  zip="j"
+  ext="bz2"
+else
+  zip="z"
+  ext="gz"
+fi
+
 # Wrap it nicely up into an archive
 # Wrap it nicely up into an archive
 if [ $nopkg = "0" -o $pkg = "1" ]; then
 if [ $nopkg = "0" -o $pkg = "1" ]; then
   echo "[*] Packaging..."
   echo "[*] Packaging..."
-  if [ $bzip = "1" ]; then
-    zip="j"
-    ext="bz2"
-  else
-    zip="z"
-    ext="gz"
-  fi
   #This MALLOC business is to not Abort 'tar' due to some bug it has.
   #This MALLOC business is to not Abort 'tar' due to some bug it has.
   tmp=${MALLOC_CHECK_}
   tmp=${MALLOC_CHECK_}
   unset MALLOC_CHECK_
   unset MALLOC_CHECK_
-  tar -c${zip}f ${PACKNAME}.$os-$ver${d}.tar.${ext} *.$os-$ver${d}
+  tar -c${zip}f ${PACKNAME}.$os-$ver${d}.tar.${ext} hub.$os-$ver${d} leaf.$os-$ver${d}
+  chmod 0644 ${PACKNAME}.$os-$ver${d}.tar.${ext}
   if test -n "$tmp"; then
   if test -n "$tmp"; then
     declare -x MALLOC_CHECK_=$tmp
     declare -x MALLOC_CHECK_=$tmp
   fi
   fi
@@ -220,8 +222,22 @@ if [ $nopkg = "0" -o $pkg = "1" ]; then
   echo "Binaries are now in '${PACKNAME}.$os-$ver${d}.tar.${ext}'."
   echo "Binaries are now in '${PACKNAME}.$os-$ver${d}.tar.${ext}'."
  
  
   if ! [ $scp = 0 ]; then
   if ! [ $scp = 0 ]; then
-    scp -C ${PACKNAME}.$os-$ver${d}.tar.${ext} $scp
+    scp -p -C ${PACKNAME}.$os-$ver${d}.tar.${ext} $scp
+  fi
+elif ! [ $scp = 0 ]; then
+  cp hub hub.$os-$ver${d}-${builddate} > /dev/null 2>&1
+  cp leaf leaf.$os-$ver${d}-${builddate} > /dev/null 2>&1
+  #This MALLOC business is to not Abort 'tar' due to some bug it has.
+  tmp=${MALLOC_CHECK_}
+  unset MALLOC_CHECK_
+  tar -c${zip}f $os-$ver${d}-${builddate}.tar.${ext} hub.$os-$ver${d}-${builddate} leaf.$os-$ver${d}-${builddate}
+  chmod 0644 $os-$ver${d}-${builddate}.tar.${ext}
+  if test -n "$tmp"; then
+    declare -x MALLOC_CHECK_=$tmp
   fi
   fi
+  scp -p -C $os-$ver${d}-${builddate}.tar.${ext} $scp
+  rm -rf $os-$ver${d}-${builddate}.tar.${ext} hub.$os-$ver${d}-${builddate} leaf.$os-$ver${d}-${builddate}
 fi
 fi
-  exit 0
 
 
+
+exit 0