Changeset 17

Show
Ignore:
Timestamp:
03/31/05 16:36:26 (4 years ago)
Author:
ludo
Message:

make dep now builds a .deb

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/README

    r14 r17  
    44admin   : lrsd, command line utilities 
    55base    : skelton for base*.tgz, Makefile for building base*.tgz 
    6 dist    : base*.tgz 
     6dist    : base*.tgz and initrd,bzImage,revoboot.pxe with version info 
  • trunk/server/base/Makefile

    r6 r17  
    55SRCDIR = ./revoboot 
    66DESTDIR = ../dist 
     7LBLDIR = ../dist 
    78 
    89TMPBASE = base.tgz 
     
    1011TODAY = $(shell date '+%Y%m%d') 
    1112 
    12 FILES=`cat ../lbl/Version | awk '{print $$1}'` 
    13 LINKS=`cat ../lbl/Version | awk '{print $$2}'` 
     13VERSION=../dist/Version 
     14 
     15FILES=`cat $(VERSION) | awk '{print $$1}'` 
     16LINKS=`cat $(VERSION) | awk '{print $$2}'` 
    1417BASE=../base/revoboot/bin 
    1518 
     
    2730        rm -f $(BASE)/bzImage* 
    2831        rm -f $(BASE)/lbl.cdrom* 
    29         (cd ../lbl;rm -f $(LINKS)) 
    30         (cd ../lbl;while read f l; do if test $$l; then ln -s $$f $$l; fi; done) <../lbl/Version 
    31         rdev ../lbl/bzImage.initrd /dev/ram0 
    32         (cd ../lbl/; tar -cf - $(FILES) $(LINKS) ) | (cd $(BASE) ; tar -xf -) 
     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 -) 
    3336        # latest utilities 
    3437        ./copy 
    3538        #rsync -v --exclude .svn /home/weex/ftp/base/winutils/* revoboot/lib/util/winutils/ 
    36         rsync -v --exclude .svn ../postinst/templates/* revoboot/images/templates/ 
     39        #rsync -v --exclude .svn ../postinst/templates/* revoboot/images/templates/ 
    3740        (cd revoboot/imgskel;./symlinks) 
    3841        chown nobody revoboot/images/data 
     
    4245        rm $(TMPBASE) 
    4346 
     47deb: 
     48        sed 1s/[0-9]*.1gpl/$(TODAY).1gpl/ < $(SRCDIR)/debian/changelog > $(SRCDIR)/debian/changelog.new 
     49        mv -f $(SRCDIR)/debian/changelog.new $(SRCDIR)/debian/changelog 
     50        (cd $(SRCDIR); dpkg-buildpackage -tc) 
     51        mv lbs_$(TODAY)* $(DESTDIR) 
     52 
    4453clean: 
    4554        rm -f $(TMPBASE) 
  • trunk/server/base/files

    r14 r17  
    55../admin/perl/rename_host       revoboot/bin/rename_host 
    66../../client/revimage/decompress-test   revoboot/bin/decompress-test 
    7 ../../client/grub.cdrom/grub-0.95/stage2/stage2_eltorito      revoboot/bin/grub.cdrom 
     7../../client/grub.cdrom/stage2/stage2_eltorito        revoboot/bin/grub.cdrom 
    88../admin/lrsd                   revoboot/bin/lrsd 
    99../admin/perl/info              revoboot/bin/info