Revision 7

Date:
2007/03/15 20:26:53
Author:
gdshaw@RISCPKG.ORG
Revision Log:
Added package build script.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/RiscPkg/Rules

     
    1 # This file is part of the RISC OS Packaging Project !System application.
    2 # Copyright � 2005 Graham Shaw.
    3 # Redistribution and modification are permitted under the terms of the
    4 # GNU General Public License (version 2 or any later version).
    5
    6 VERSION = 0.0.0
    7 PACKAGES = System_$(VERSION)
    8
    9 all:
    10 make -C System
    11 rm -rf Temp
    12 mkdir -p Temp/RiscPkg
    13 cp -R System Temp
    14
    15 chmod -R 444 Temp/System
    16 make -C Temp -f ../RiscPkg/Rules $(PACKAGES)
    17 rm -rf Temp
    18
    19 .PHONY: clean
    20 clean:
    21 make -C System clean
    22 rm -rf Temp
    23 rm -f $(PACKAGES)
    24
    25 .PHONY: distclean
    26 distclean: clean
    27
    28 .PHONY: $(PACKAGES)
    29 $(PACKAGES): %:
    30 riscpkg-gencontrol $(firstword $(subst _, ,$@)) < ../RiscPkg/Control > RiscPkg/Control
    31 rm -f ../$@
    32 zip -r ../RiscPkg/$@ * -i@../RiscPkg/$(firstword $(subst _, ,$@)).inc
  • trunk/RiscPkg/System.inc

     
    1 RiscPkg/*
    2 System/!*
    3 System/SysPath