]> code.delx.au - refind/blobdiff - mkdistrib
Added note about Mac "retina" display problems to todo.html file.
[refind] / mkdistrib
index 396539d6897e7f8c460159f7e20ac6e8cc771c89..6e46866b5e14305f807fae54ce35d01255ce2f66 100755 (executable)
--- a/mkdistrib
+++ b/mkdistrib
@@ -30,6 +30,12 @@ KeysInfo=`df $KeysDir 2> /dev/null | grep $KeysDir`
 StartDir=`pwd`
 SBSign=`which sbsign 2> /dev/null`
 
+ShowUsage() {
+   echo "Usage:"
+   echo "$0 [--nosign] [--norpm] [--nodebian] [--nozip] version"
+   exit
+}
+
 GetParams() {
    while [[ $# -gt 0 ]]; do
       echo "$1"
@@ -42,14 +48,15 @@ GetParams() {
               ;;
          --nozip) MakeZip=0
               ;;
-         --help) echo "Usage:"
-                 echo "$0 [--nosign] [--norpm] [--nodebian] [--nozip] version"
-                 exit
+         --help) ShowUsage $0
               ;;
          * ) Version=$1
       esac
       shift
    done
+   if [[ -z "$Version" ]] ; then
+      ShowUsage $0
+   fi
 } # GetParams()
 
 # Copy rEFInd source files to refind-$Version inside $TargetDir directory
@@ -63,8 +70,8 @@ MakeTarball() {
     cp --preserve=timestamps -r icons/licenses/* $TargetDir/refind-$Version/icons/licenses/
     cp --preserve=timestamps -r icons/svg/* $TargetDir/refind-$Version/icons/svg/
     cp -a debian docs images keys fonts banners include EfiLib libeg mok net refind filesystems \
-        gptsync refind.spec refind-install mkrlconf mvrefind mountesp CREDITS.txt NEWS.txt BUILDING.txt \
-        COPYING.txt LICENSE.txt README.txt refind.inf Make.tiano Make.common Make.aarch64 Makefile \
+        gptsync refind.spec refind-install refind-mkdefault mkrlconf mvrefind mountesp CREDITS.txt \
+        NEWS.txt BUILDING.txt COPYING.txt LICENSE.txt README.txt refind.inf Make.common Makefile \
         refind.conf-sample $TargetDir/refind-$Version
 
     # Go there and prepare a souce code tarball....
@@ -136,7 +143,7 @@ MakeZipBinary() {
         cp --preserve=timestamps gptsync/gptsync_x64.efi refind-bin-$Version/refind/tools_x64/
     fi
     cp refind-bin-$Version/refind/refind_x64.efi $StartDir
-    cp -a docs keys banners fonts COPYING.txt LICENSE.txt README.txt CREDITS.txt NEWS.txt refind-install mkrlconf mvrefind mountesp refind-bin-$Version
+    cp -a docs keys banners fonts COPYING.txt LICENSE.txt README.txt CREDITS.txt NEWS.txt refind-install refind-mkdefault mkrlconf mvrefind mountesp refind-bin-$Version
 
     # Prepare the final .zip file
     zip -9r ../refind-bin-$Version.zip refind-bin-$Version
@@ -216,6 +223,7 @@ rm -rf debian/refind debian/*.log
 # Convert man pages to HTML form
 man2html docs/man/mkrlconf.8 > docs/refind/mkrlconf.html
 man2html docs/man/mvrefind.8 > docs/refind/mvrefind.html
+man2html docs/man/refind-mkdefault.8 > docs/refind/refind-mkdefault.html
 man2html docs/man/refind-install.8 > docs/refind/refind-install.html
 
 mkdir -p ../snapshots/$Version