summaryrefslogtreecommitdiffstats
path: root/move/Makefile
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-09 21:48:47 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-09 21:48:47 +0000
commit208870d500d245362fd6cc52f3bf28723475fe91 (patch)
tree993f4f626b8ff2bd66c05a73f88a1d81710fc073 /move/Makefile
parentbcafc07d0f9251906312f6d5492d8308ddcec49c (diff)
downloaddrakx-208870d500d245362fd6cc52f3bf28723475fe91.tar
drakx-208870d500d245362fd6cc52f3bf28723475fe91.tar.gz
drakx-208870d500d245362fd6cc52f3bf28723475fe91.tar.bz2
drakx-208870d500d245362fd6cc52f3bf28723475fe91.tar.xz
drakx-208870d500d245362fd6cc52f3bf28723475fe91.zip
mandrake-move can nearly start (shell starts, X config not done so X server currently crashes)
Diffstat (limited to 'move/Makefile')
-rw-r--r--move/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/move/Makefile b/move/Makefile
new file mode 100644
index 000000000..f0a147a49
--- /dev/null
+++ b/move/Makefile
@@ -0,0 +1,40 @@
+
+DEST_LIVETREE = /tmp/live_tree
+DEST_STAGE2 = $(DEST_LIVETREE)/usr/bin/stage2
+
+DATA_FILES = devices symlinks
+
+STAGE1 = ../mdk-stage1
+INSTALL = ../perl-install
+
+INSTALL_FILES = install2.pm install_steps.pm install_any.pm install_interactive.pm install_steps_gtk.pm install_steps_interactive.pm install_messages.pm install_gtk.pm help.pm
+
+all: install
+
+build:
+ cd $(STAGE1) && ADDITIONAL_DEFS="-DMANDRAKE_MOVE" make init stage1-network stage1-cdrom init-move
+
+install: build
+ #- todo: make_boot_img alike to create boot volume from ../mdk-stage1/stage1-cdrom (isolinux mandatory since stock kernel is so big)
+ sudo cp -f $(STAGE1)/init-move $(DEST_LIVETREE)/sbin/init
+
+ sudo cp -f runstage2 $(DEST_LIVETREE)/usr/bin
+ sudo rm -rf $(DEST_STAGE2)
+ sudo mkdir -p $(DEST_STAGE2)
+ sudo cp -f *.pm $(DEST_STAGE2)
+ sudo cp -f $(addprefix $(INSTALL)/, $(INSTALL_FILES)) $(DEST_STAGE2)
+
+ #- overwrite /usr/lib/libDrakX files of the live tree with those in CVS
+ sudo cp -f $(addprefix $(INSTALL)/, $(patsubst /usr/lib/libDrakX/%.pm, %.pm, $(shell ls /usr/lib/libDrakX/*.pm))) $(DEST_LIVETREE)/usr/lib/libDrakX || :
+
+ #- overwrite stuff.so of drakxtools because it doesn't contain C_DRAKX stuff
+ sudo cp -f ../perl-install/c/blib/arch/auto/stuff/stuff.so `find $(DEST_LIVETREE)/usr/lib* | grep stuff/stuff.so`
+
+ #- duplicated :(
+ sudo perl -pi -e 's/#[-+].*//; $$_ = "\n" if (/^=(head|begin)/ .. /^=cut/) || /use (diagnostics|vars|strict)/' $(DEST_STAGE2)/*.pm $(DEST_LIVETREE)/usr/lib/libDrakX/*.pm
+
+ sudo mkdir -p $(DEST_LIVETREE)/move
+ sudo cp -f $(addprefix data/, $(DATA_FILES)) $(DEST_LIVETREE)/move
+
+ grep ChangeLog $(INSTALL)/CVS/Entries > /tmp/version
+ sudo cp -f /tmp/version $(DEST_LIVETREE)/usr/share/VERSION