ARCH := $(patsubst i%86,i386,$(shell uname -m)) ARCH := $(patsubst sparc%,sparc,$(ARCH)) RELEASE_BOOT_IMG = hd.img cdrom.img network.img ifeq (i386,$(ARCH)) RELEASE_BOOT_IMG += pcmcia.img blank.img all.img other.img endif ifeq (sparc,$(ARCH)) BOOT_IMG = live.img tftp.img tftprd.img live64.img tftp64.img tftprd64.img RELEASE_BOOT_IMG += hd64.img cdrom64.img network64.img endif BOOT_IMG += $(RELEASE_BOOT_IMG) BOOT_RDZ = $(BOOT_IMG:%.img=%.rdz) BINS = install/install install/full-install install/local-install install/installinit/init DIRS = tools install install/installinit perl-install ROOTDEST = /export UPLOAD_DEST_ = ~/cooker UPLOAD_DEST = $(UPLOAD_DEST_)/cooker UPLOAD_DEST_CONTRIB = $(UPLOAD_DEST_)/contrib UPLOAD_SPARC_DEST = /mnt/BIG/distrib/sparc .PHONY: dirs $(FLOPPY_IMG) install install: build autoboot rescue for i in images misc Mandrake Mandrake/base; do install -d $(ROOTDEST)/$$i ; done cp -f $(RELEASE_BOOT_IMG) $(ROOTDEST)/images ifeq (alpha,$(ARCH)) cp -f $(BOOT_RDZ) $(ROOTDEST)/boot cp -f vmlinux.gz $(ROOTDEST)/boot/instboot.gz # sudo install -d /mnt/loop # for i in $(ROOTDEST)/images/disks/*; do \ # sudo mount $$i /mnt/loop -o loop ;\ # sudo cp -f vmlinux.gz /mnt/loop ;\ # sudo umount $$i ;\ # done make -C tools/$(ARCH)/cd install ROOTDEST=$(ROOTDEST) endif make -C perl-install full_stage2 build: $(BOOT_IMG) autoboot: ifeq (i386,$(ARCH)) install -d $(ROOTDEST)/boot cp -f vmlinuz {hd,cdrom,pcmcia,network,all,other}.rdz $(ROOTDEST)/boot /usr/sbin/rdev -v $(ROOTDEST)/boot/vmlinuz 788 endif dirs: for i in $(DIRS); do make -C $$i; done rescue: modules make -C $@ network_ks.rdz pcmcia_ks.rdz: %_ks.rdz: %.rdz $(BOOT_RDZ): dirs modules ./make_boot_img $@ $(@:%.rdz=%) $(BOOT_IMG): %.img: %.rdz ./make_boot_img $@ $(@:%.img=%) tar: clean rpm -qa > needed_rpms.lst cd .. ; tar cfy gi.tar.bz2 gi rm needed_rpms.lst modules: `./tools/specific_arch ./update_kernel` $(BOOT_IMG:%=%f): %f: % dd if=$< of=/dev/fd0 xmessage "Floppy done" clean: rm -rf $(BOOT_IMG) $(BOOT_RDZ) $(BINS) modules modules64 install_pcmcia_modules vmlinu* System*.map rm -rf install/*/sbin/install install/*/sbin/init for i in $(DIRS) rescue; do make -C $$i clean; done find . -name "*~" -o -name ".#*" | xargs rm -f upload: clean install function upload() { rsync -qSavz --verbose --exclude '*~' -e ssh --delete $(ROOTDEST)/$$1/$$2 mandrake@kenobi:/c/cooker/$$1; } ;\ upload Mandrake/mdkinst '' ;\ upload Mandrake/base compss* ;\ upload Mandrake/base *_stage2.gz ;\ upload boot '' ;\ for i in $(RELEASE_BOOT_IMG); do upload images $$i; done ;\ echo perl -pe 'exit if / DrakX md5sum # as distrib: mv ~/tmp/r/images ~/oxygen/oxygen '#n17'>17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#!/bin/sh

PATH=/bin:/usr/bin

if [ -f /etc/sysconfig/i18n ]; then
  . /etc/sysconfig/i18n
fi

case ${LC_ALL:-${LC_CTYPE-$LANG}} in
    *.utf8|*.UTF-8)
         if [ -x /bin/unicode_start ] && /sbin/consoletype fg ; then
      	    exec unicode_start $SYSFONT $SYSFONTACM
	 fi
	 ;;
    *)
	if /sbin/consoletype fg ; then
		# no exec, unicode_stop does not set a font
	        unicode_stop
	fi
	;;
esac

if [ -x /bin/setfont ]; then
  if [ -n "$UNIMAP" ]; then
    ARGS="-u $UNIMAP"
  fi
  if [ -n "$SYSFONTACM" ]; then
    if [ ! -f /lib/kbd/consoletrans/${SYSFONTACM}_to_uni.trans ]; then
        SYSFONTACM=$(echo $SYSFONTACM | sed "s|iso0|8859-|g;s|iso|8859-|g")
    fi
    ARGS="$ARGS -m $SYSFONTACM"
  fi
  if [ -n "$SYSFONT" ]; then
    /bin/setfont $SYSFONT $ARGS
#  else
#    /bin/setfont
    echo -ne "\033(K" 2>/dev/null > /proc/$$/fd/0
  fi
fi

exit 0