summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-17 13:04:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-17 13:04:29 +0000
commitc2cb7f8cea4a4047cdefec034148d0c04050ab9e (patch)
treeb5826f9f791558a6683b9a80d7a0cd13be527029
parentc0fc9f49955f718e14c47bf901d56ae981f291a4 (diff)
downloaddrakx-c2cb7f8cea4a4047cdefec034148d0c04050ab9e.tar
drakx-c2cb7f8cea4a4047cdefec034148d0c04050ab9e.tar.gz
drakx-c2cb7f8cea4a4047cdefec034148d0c04050ab9e.tar.bz2
drakx-c2cb7f8cea4a4047cdefec034148d0c04050ab9e.tar.xz
drakx-c2cb7f8cea4a4047cdefec034148d0c04050ab9e.zip
add a "making iso" rule
-rw-r--r--move/Makefile21
1 files changed, 17 insertions, 4 deletions
diff --git a/move/Makefile b/move/Makefile
index fd55532f8..da2edaf50 100644
--- a/move/Makefile
+++ b/move/Makefile
@@ -2,6 +2,8 @@
DEST_LIVETREE = /tmp/live_tree
DEST_STAGE2 = $(DEST_LIVETREE)/usr/bin/stage2
+ISO = /BIG/mdkmove.iso
+
DATA_FILES = devices symlinks directories-to-create etcfiles all-etcfiles keyfiles README.adding.more.files
LANG_FILES = $(shell perl -ne 'print $$1 if /ALLOWED_LANGS = qw\((.*)\)/' move.pm)
@@ -17,6 +19,7 @@ else
LIB_NAME = lib
endif
+.PHONY: iso
all: install
@@ -61,7 +64,6 @@ install: build
grep ChangeLog $(INSTALL)/CVS/Entries > /tmp/version
sudo cp -f /tmp/version $(DEST_LIVETREE)/usr/share/VERSION
-
live_tree_boot:
./make_live_tree_boot
$(MAKE) /tmp/live_tree_always.clp
@@ -72,6 +74,20 @@ live_tree_boot:
un_live_tree_boot:
./make_live_tree_boot -u
+iso: un_live_tree_boot install live_tree_boot
+ rm -rf /tmp/iso /tmp/live_tree.clp
+ mkdir /tmp/iso
+ cp -a isolinux /tmp/iso
+ $(MAKE) /tmp/live_tree.clp
+ mv /tmp/*.clp /tmp/iso
+
+ touch /tmp/iso/isolinux/boot.cat
+ find /tmp/iso/isolinux -type f -printf '%p 100\n' > r.sort ; echo '/tmp/iso/live_tree_boot.clp 5' >> r.sort
+ mkisofs -r -J -hide-rr-moved -nobak -cache-inodes -V 'Mandrake Move' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $(ISO) /tmp/iso
+ mv /tmp/iso/*.clp /tmp
+# cdrecord -v -eject dev=0,0,0 blank=fast gracetime=2 speed=99 $(ISO)
+# ftp://a:a@leia//BIG/mdkmove.iso
+
xwait: %: %.c
$(CC) $(CFLAGS) $< -L/usr/X11R6/$(LIB_NAME) -lX11 -o $@
@@ -89,6 +105,3 @@ check_dirs:
for i in `cat data/*.dirs`; do grep /tmp/live_tree$$i/ data/*.list; done ||:
# perl tools/busy-files-accesses --no-link --no-dir --full-dirs 'data/always.dirs data/boot.dirs data/totem.dirs' --already-have data/always.list
-
-# touch r/isolinux/boot.cat ; find r/isolinux -type f -printf '%p 100\n' > r.sort ; echo 'r/isolinux/live_tree_boot.clp 5' >> r.sort
-# mkisofs -r -J -hide-rr-moved -nobak -cache-inodes -V 'Mandrake Move' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table r | cdrecord -v -eject dev=0,0,0 blank=fast gracetime=2 speed=99 -