Rename 'update-iso.ml' as more happenin' 'iso-attach'.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 2 Feb 2008 16:00:45 +0000 (16:00 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 2 Feb 2008 16:00:45 +0000 (16:00 +0000)
MANIFEST
Makefile
iso-attach [moved from update-iso.ml with 90% similarity]

index bc9fec2..27e3daf 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -2,6 +2,7 @@ COPYING
 .cvsignore
 .hgignore
 inittab
+iso-attach
 livecd.ks.in
 livecd-post.sh.in
 lvm.conf
@@ -9,5 +10,4 @@ Makefile
 MANIFEST
 README
 README.developers
-update-iso.ml
 virt-p2v.ml
index f2df2a6..bd944e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -103,8 +103,8 @@ boot:
 # Update an existing ISO.
 
 update: checkroot checkscript
-       -./update-iso.ml delete $(ISO)
-       ./update-iso.ml add $(ISO) virt-p2v.ml
+       -./iso-attach delete $(ISO)
+       ./iso-attach add $(ISO) virt-p2v.ml
 
 # Check that we are root.
 
similarity index 90%
rename from update-iso.ml
rename to iso-attach
index c50c755..55bcd3e 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/ocamlrun /usr/bin/ocaml
-#load "unix.cma";;
-
-(* update-iso.ml attaches an updated 'virt-p2v.ml' file to the end of
+(* -*- tuareg -*- *)
+(* iso-attach attaches an updated 'virt-p2v.ml' file to the end of
  * an ISO image.  This is just for quick developer builds because it
  * takes ages to rebuild a full ISO.
  *
@@ -23,6 +22,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *)
 
+#load "unix.cma";;
+
 open Printf
 open Unix
 
@@ -90,19 +91,31 @@ let rec main () =
       do_has isoname
   | _ ->
       eprintf "\
-update-iso.ml add foo.iso file
-  Attach 'file' to 'foo.iso'.
+NAME
+
+  iso-attach - Attach files to CD-ROM ISO images.
+
+SYNOPSIS
+
+  iso-attach add foo.iso file
+    Attach 'file' to 'foo.iso'.
+
+  iso-attach delete foo.iso
+    Remove attachment (if any) from 'foo.iso'.
+
+  iso-attach get foo.iso file
+    Get attachment from 'foo.iso' and save it as 'file'.
 
-update-iso.ml delete foo.iso
-  Remove attachment (if any) from 'foo.iso'.
+  iso-attach has foo.iso
+    Exit with 0 (true) if there is an attachment.
+    Exit with 1 (false) if there is no attachment.
+    Exit with 2 if there was some other error, eg. file not found.
 
-update-iso.ml get foo.iso file
-  Get attachment from 'foo.iso' and save it as 'file'.
+DESCRIPTION
 
-update-iso.ml has foo.iso
-  Exit with 0 (true) if there is an attachment.
-  Exit with 1 (false) if there is no attachment.
-  Exit with 2 if there was some other error, eg. file not found.
+iso-attach attaches an updated 'virt-p2v.ml' file to the end of
+an ISO image.  This is just for quick developer builds because it
+takes ages to rebuild a full ISO.
 
 Note that attachments are stacked, so you can add more than one
 attachment.  In this case 'get' operation returns the most recently