Changeset 80

Show
Ignore:
Timestamp:
07/26/05 18:19:20 (3 years ago)
Author:
ludo
Message:

simplified build system

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/base/Makefile

    r18 r80  
    44 
    55SRCDIR = ./revoboot 
    6 DESTDIR = ../dist 
    7 LBLDIR = ../dist 
     6DESTDIR = $(shell pwd)/../dist 
     7LRSCD = /tmp/lrscd 
     8SHELL = /bin/bash 
     9BUILD = $(shell cat BUILD) 
     10BUILDRB = $(shell grep VERSION ../../client/src_revoboot/config.h|tr -dc [0-9]) 
    811 
    912TMPBASE = base.tgz 
     
    1114TODAY = $(shell date '+%Y%m%d') 
    1215 
    13 VERSION=../dist/Version 
    14  
    15 FILES=`cat $(VERSION) | awk '{print $$1}'` 
    16 LINKS=`cat $(VERSION) | awk '{print $$2}'` 
    1716BASE=../base/revoboot/bin 
    1817 
    1918all:    dist 
    2019 
    21 mini: 
     20mini: update_build 
    2221        (cd revoboot/bin;tar -czvf ../../bin-miniupdate_$(TODAY).tgz initrd* bzI*) 
    2322 
    2423$(TMPBASE):     $(REVOBOOT_FILES) 
    2524 
    26 dist:    
    27         # get the last kernel compile 
     25update_build: 
    2826        rm -f $(BASE)/revoboot.pxe* 
    2927        rm -f $(BASE)/initrd* 
    3028        rm -f $(BASE)/bzImage* 
    3129        rm -f $(BASE)/lbl.cdrom* 
    32         (cd $(LBLDIR);rm -f $(LINKS)) 
    33         (cd $(LBLDIR);while read f l; do if test $$l; then ln -s $$f $$l; fi; done) < $(VERSION) 
    34         rdev $(LBLDIR)/bzImage.initrd /dev/ram0 
    35         (cd $(LBLDIR)/; tar -cf - $(FILES) $(LINKS) ) | (cd $(BASE) ; tar -xf -) 
     30        # get the last kernel compile 
     31        for i in ../../client/src_kernel/bzImage ../../client/src_initrd/initrd.gz ;do \ 
     32            [ ! -f $$i.$(BUILD) ] && cp $$i $$i.$(BUILD); \ 
     33            cp -f $$i.$(BUILD) $(BASE); \ 
     34        done 
     35        cp -f ../../client/src_revoboot/revoboot.pxe.$(BUILDRB) $(BASE) 
     36        (cd $(BASE);\ 
     37        ln -sf bzImage.$(BUILD) bzImage.initrd;\ 
     38        ln -sf initrd.gz.$(BUILD) initrd.gz;\ 
     39        ln -sf revoboot.pxe.$(BUILDRB) revoboot.pxe) 
     40        rdev $(BASE)/bzImage.initrd /dev/ram0 
     41 
     42dist: update_build 
    3643        # latest utilities 
    3744        ./copy 
     
    4249        tar cvzf $(TMPBASE) --exclude ./revoboot/debian --exclude CVS --exclude .svn $(SRCDIR) 
    4350        cp $(TMPBASE)  $(DESTDIR)/base_$(TODAY).tgz 
    44         (cd revoboot;tar -czvf ../$(DESTDIR)/bin-update_$(TODAY).tgz --exclude .svn --exclude BASENUM --exclude CVS bin lib images/data images/templates imgbase) 
     51        (cd revoboot;tar -czvf $(DESTDIR)/base-update_$(TODAY).tgz --exclude .svn --exclude BASENUM --exclude CVS bin lib images/data images/templates imgbase) 
    4552        rm $(TMPBASE) 
    4653 
  • trunk/server/base/revoboot/debian/changelog

    r31 r80  
    1 lbs (20050331.1gpl) stable; urgency=low 
     1lbs (20050726.1gpl) stable; urgency=low 
    22 
    33  * New upstream release 
  • trunk/server/base/revoboot/imgbase/Backup-B/conf.txt

    r37 r80  
    33kernel (nd)/tftpboot/revoboot/bin/bzImage.initrd revosavedir=/imgbase/Base-BASENUM quiet 
    44initrd (nd)/tftpboot/revoboot/bin/initrd.gz 
    5