Revision 8

Date:
2010/09/19 08:55:10
Author:
gdshaw@RISCID.ORG
Revision Log:
Added package build script.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/RiscPkg/Common-Licences.inc

     
    1 RiscPkg/*
    2 Manuals/Common-Licences/[^.]*
  • trunk/RiscPkg/Rules

     
    1 VERSION = 0.1.0
    2 PACKAGES = Common-Licences_$(VERSION)
    3
    4 pkg:
    5 rm -rf Temp
    6 mkdir -p Temp/RiscPkg
    7 cp RiscPkg/Copyright Temp/RiscPkg/
    8 cp -r Manuals Temp/
    9
    10 chmod -R =rX Temp/Manuals
    11 make -C Temp -f ../RiscPkg/Rules $(PACKAGES)
    12 chmod -R =rwX Temp/Manuals
    13 rm -rf Temp
    14
    15 .PHONY: clean
    16
    17 .PHONY: distclean
    18
    19 .PHONY: $(PACKAGES)
    20 $(PACKAGES): %:
    21 riscpkg-gencontrol $(firstword $(subst _, ,$@)) < ../RiscPkg/Control > RiscPkg/Control
    22 rm -f ../RiscPkg/$@
    23 zip -r -, ../RiscPkg/$@ * -i@../RiscPkg/$(firstword $(subst _, ,$@)).inc