]> wimlib.net Git - wimlib/commitdiff
mkwinpeimg: Add IA64 arch and update docs
authorEric Biggers <ebiggers3@gmail.com>
Tue, 22 Jan 2013 23:45:56 +0000 (17:45 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 22 Jan 2013 23:45:56 +0000 (17:45 -0600)
Add IA64 architecture as a valid argument to --arch, and also update the help
and man page.

doc/mkwinpeimg.1.in
programs/mkwinpeimg

index 94092e64cecf619f94fc603ca444ed2c90c86512..1f2dc187f36d58404fc31a95bad8747f4fe03569 100644 (file)
@@ -78,6 +78,11 @@ Adds all the files in DIR to the Windows PE image.
 \fB\-t\fR, \fB\-\-tmp\-dir\fR=\fIDIR\fR
 Use DIR for temporary files.  Defaults to a directory made using "mktemp -d".
 .TP
 \fB\-t\fR, \fB\-\-tmp\-dir\fR=\fIDIR\fR
 Use DIR for temporary files.  Defaults to a directory made using "mktemp -d".
 .TP
+\fB\-a\fR, \fB\-\-arch\fR=\fIARCH\fR
+Use the Windows PE version from the Windows Automated Installation Kit that has
+the CPU architecture \fIARCH\fR.  Only valid with \fB\-\-waik\-dir\fR.  Possible
+values: "x86", "amd64", or "ia64".  Default is "x86".
+.TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help.
 .TP
index 48cca30111b306fe18c323e2d517128142cf6dac..3075c28d112f31bbe1310569bb219709e8fb3c94 100755 (executable)
@@ -106,8 +106,9 @@ Usage: $script_name [OPTIONS] IMAGE
   -O, --overlay=DIR        Adds all the files in DIR to the Windows PE image.
   -t, --tmp-dir=DIR        Use DIR as the temporary base of the ISO filesystem.  
                               Defaults to making one using "mktemp -d".
   -O, --overlay=DIR        Adds all the files in DIR to the Windows PE image.
   -t, --tmp-dir=DIR        Use DIR as the temporary base of the ISO filesystem.  
                               Defaults to making one using "mktemp -d".
-  -a, --arch=ARCH          Use ARCH version (x86 or amd64)
-                              Defaults: x86
+  -a, --arch=ARCH          Use the Windows PE version from the WAIK that has
+                              the CPU architecture ARCH.  Possible values:
+                              "x86", "amd64", or "ia64".  Default is "x86".
   -h, --help               Display this information.
   -v, --version            Show version information.
 
   -h, --help               Display this information.
   -v, --version            Show version information.
 
@@ -182,13 +183,14 @@ process_command_line() {
                        if [ "$2" == "x86" ]; then
                                arch="X86"
                                arch_id="1"
                        if [ "$2" == "x86" ]; then
                                arch="X86"
                                arch_id="1"
-
+                       elif [ "$2" == "ia64" ]; then
+                               arch="IA64"
+                               arch_id="2"
                        elif [ "$2" == "amd64" ]; then
                                arch="AMD64"
                                arch_id="3"
                        elif [ "$2" == "amd64" ]; then
                                arch="AMD64"
                                arch_id="3"
-
                        else 
                        else 
-                               echo "ERROR: $2 is not a valid arch (x86/amd64)"
+                               echo "ERROR: $2 is not a valid arch (x86/amd64/ia64)"
                                exit 1
                        fi
                        shift
                                exit 1
                        fi
                        shift