Revision 19

Date:
2010/06/14 20:46:38
Author:
gdshaw@RISCID.ORG
Revision Log:
Updated build script to work with current tools.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/RiscPkg/RiscPkg-GenControl.inc

     
    1 RiscPkg.*
    2 SysVars.*
    3 Apps.Programming.!RiscPkg-GenControl.!Boot
    4 Apps.Programming.!RiscPkg-GenControl.!Help
    5 Apps.Programming.!RiscPkg-GenControl.!Run
    6 Apps.Programming.!RiscPkg-GenControl.Copyright
    7 Apps.Programming.!RiscPkg-GenControl.History
    8 Apps.Programming.!RiscPkg-GenControl.README
    9 Apps.Programming.!RiscPkg-GenControl.riscpkg-gencontrol
    1 RiscPkg/*
    2 SysVars/*
    3 Apps/Programming/!RiscPkg-GenControl/!Boot
    4 Apps/Programming/!RiscPkg-GenControl/!Help
    5 Apps/Programming/!RiscPkg-GenControl/!Run
    6 Apps/Programming/!RiscPkg-GenControl/Copyright
    7 Apps/Programming/!RiscPkg-GenControl/History
    8 Apps/Programming/!RiscPkg-GenControl/README
    9 Apps/Programming/!RiscPkg-GenControl/riscpkg-gencontrol
  • trunk/RiscPkg/Rules

     
    1 PKGNAME = RiscPkg-GenControl
    2 VERSION = 0/1/0
    1 VERSION = 0.1.0
    2 PACKAGES = RiscPkg-GenControl_$(VERSION)
    3 3
    4 pkg:
    5 CDir Temp
    6 Wipe Temp ~CFR~V
    7 CDir Temp
    8 CDir Temp.RiscPkg
    9 Copy RiscPkg.Copyright Temp.RiscPkg.Copyright ~CF~V
    10 CDir Temp.Apps
    11 CDir Temp.Apps.Programming
    12 Copy !RiscPkg-GenControl Temp.Apps.Programming.!RiscPkg-GenControl ~CFR~V
    13 Access Temp.Apps.Programming.!RiscPkg-GenControl.* LR/R
    14 Copy SysVars Temp.SysVars ~CFR~V
    4 all:
    5 make -C !RiscPkg-GenControl
    6 rm -rf Temp
    7 mkdir -p Temp/RiscPkg
    8 mkdir -p Temp/Apps/Programming
    9 cp -R !RiscPkg-GenControl Temp/Apps/Programming/
    10 chmod -R 444 Temp/Apps
    15 11
    16 Dir Temp
    17 riscpkg-gencontrol $(PKGNAME) < ../RiscPkg/Control > RiscPkg/Control
    18 zip -r ^.$(PKGNAME)_$(VERSION) * -i@^.RiscPkg.$(PKGNAME)/inc -x *.CVS.*
    19 Dir ^
    20 Wipe Temp ~CFR~V
    12 cp -R SysVars Temp/SysVars/
    13 make -C Temp -f ../RiscPkg/Rules $(PACKAGES)
    14 rm -rf Temp
    15
    16 .PHONY: $(PACKAGES)
    17 $(PACKAGES): %:
    18 riscpkg-gencontrol $(firstword $(subst _, ,$@)) < ../RiscPkg/Control > RiscPkg/Control
    19 rm -f ../RiscPkg/$@
    20 zip -r ../RiscPkg/$@ * -i@../RiscPkg/$(firstword $(subst _, ,$@)).inc