Index: Makefile.riscpkg =================================================================== RCS file: Makefile.riscpkg diff -N Makefile.riscpkg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Makefile.riscpkg 11 Mar 2005 07:04:15 -0000 1.1 @@ -0,0 +1,61 @@ +# This file is part of the RISC OS Packaging Project distribution of Patch. +# Copyright © 2005 Graham Shaw. +# Distribution and use are subject to the GNU General Public License +# (version 2 or later), a copy of which may be found in the file +# ".GPL-2". + +ifndef RULES +RULES = /fixdeps:/Rules.make +endif + +include $(RULES) + +ifndef CCFLAGS +CCFLAGS = -mthrowback -munixlib -mpoke-function-name -O2 +endif + +CPPFLAGS += -I. -DHAVE_CONFIG_H -Ded_PROGRAM=\"sed\" + +BIN = patch + +OBJ = addext.o \ + argmatch.o \ + backupfile.o \ + basename.o \ + error.o \ + getopt.o \ + getopt1.o \ + inp.o \ + maketime.o \ + malloc.o \ + partime.o \ + patch.o \ + pch.o \ + quotearg.o \ + quotesys.o \ + realloc.o \ + util.o \ + version.o \ + xmalloc.o + +.PHONY: all +all: $(BIN) + +.PHONY: clean +clean: + rm -f $(wildcard *.o) + rm -f $(wildcard *.d) + rm -f $(BIN) + +.PHONY: distclean +distclean: clean + +patch: $(OBJ) + $(LD) -o $@ $^ + +NODEPS = clean distclean +GOALS = $(MAKECMDGOALS) $(if $(MAKECMDGOALS),,all) + +ifneq ($(filter-out $(NODEPS),$(GOALS)),) +include $(OBJ:.o=.d) +endif Index: config.h =================================================================== RCS file: config.h diff -N config.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ config.h 11 Mar 2005 07:03:04 -0000 1.1 @@ -0,0 +1,170 @@ +/* config.h. Hand-edited from config.hin by Graham Shaw to match + * features provided by GCC and UnixLib. */ +/* config.hin. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define if the closedir function returns void instead of int. */ +/* #undef CLOSEDIR_VOID */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define if you don't have vprintf but do have _doprnt. */ +/* #undef HAVE_DOPRNT */ + +/* Define if you support file names longer than 14 characters. */ +#define HAVE_LONG_FILE_NAMES 1 + +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 + +/* Define if on MINIX. */ +/* #undef _MINIX */ + +/* Define to `int' if doesn't define. */ +/* #undef mode_t */ + +/* Define to `long' if doesn't define. */ +/* #undef off_t */ + +/* Define to `int' if doesn't define. */ +/* #undef pid_t */ + +/* Define if the system does not provide POSIX.1 features except + with this defined. */ +/* #undef _POSIX_1_SOURCE */ + +/* Define if you need to in order for stat and other things to work. */ +/* #undef _POSIX_SOURCE */ + +/* Define as the return type of signal handlers (int or void). */ +#define RETSIGTYPE void + +/* Define to `unsigned' if doesn't define. */ +/* #undef size_t */ + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Define if you have the _doprintf function. */ +/* #undef HAVE__DOPRINTF */ + +/* Define if you have the fseeko function. */ +#define HAVE_FSEEKO 1 + +/* Define if you have the isascii function. */ +#define HAVE_ISASCII 1 + +/* Define if you have the memchr function. */ +#define HAVE_MEMCHR 1 + +/* Define if you have the memcmp function. */ +#define HAVE_MEMCMP 1 + +/* Define if you have the mkdir function. */ +#define HAVE_MKDIR 1 + +/* Define if you have the mktemp function. */ +#define HAVE_MKTEMP 1 + +/* Define if you have the pathconf function. */ +#define HAVE_PATHCONF 1 + +/* Define if you have the raise function. */ +#define HAVE_RAISE 1 + +/* Define if you have the rename function. */ +#define HAVE_RENAME 1 + +/* Define if you have the rmdir function. */ +#define HAVE_RMDIR 1 + +/* Define if you have the setmode function. */ +/* #undef HAVE_SETMODE */ + +/* Define if you have the sigaction function. */ +#define HAVE_SIGACTION 1 + +/* Define if you have the sigprocmask function. */ +#define HAVE_SIGPROCMASK 1 + +/* Define if you have the sigsetmask function. */ +#define HAVE_SIGSETMASK 1 + +/* Define if you have the strerror function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the header file. */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_NDIR_H */ + +/* Define if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_DIR_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the header file. */ +#define HAVE_UTIME_H 1 + +/* Define if you have the header file. */ +#define HAVE_VARARGS_H 1 + +/* Number of bits in a file offset, on hosts where this is settable. */ +#define _FILE_OFFSET_BITS 64 + +/* Define to make fseeko etc. visible, on some hosts. */ +/* #undef _LARGEFILE_SOURCE */ + +/* Define for large files, on AIX-style hosts. */ +/* #undef _LARGE_FILES */ + +/* Define if compiler has function prototypes */ +#define PROTOTYPES 1 + +/* Define if exists, doesn't clash with , + and declares uintmax_t. */ +#define HAVE_INTTYPES_H 1 + +/* Define if struct utimbuf is declared -- usually in . + Some systems have utime.h but don't declare the struct anywhere. */ +#define HAVE_STRUCT_UTIMBUF 1 + +/* Define if the malloc check has been performed. */ +#define HAVE_DONE_WORKING_MALLOC_CHECK 1 + +/* Define to rpl_malloc if the replacement function should be used. */ +#define malloc rpl_malloc + +/* Define if the realloc check has been performed. */ +#define HAVE_DONE_WORKING_REALLOC_CHECK 1 + +/* Define to rpl_realloc if the replacement function should be used. */ +#define realloc rpl_realloc + +/* Define if there is a member named d_ino in the struct describing + directory headers. */ +#define D_INO_IN_DIRENT 1 Index: !Patch/!Boot,feb =================================================================== RCS file: !Patch/!Boot,feb diff -N !Patch/!Boot,feb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !Patch/!Boot,feb 11 Mar 2005 06:14:57 -0000 1.1 @@ -0,0 +1,9 @@ +| This file is part of the RISC OS Packaging Project distribution of Patch. +| Copyright © 2005 Graham Shaw. +| Distribution and use are subject to the GNU General Public License +| (version 2 or later), a copy of which may be found in the file +| ".GPL-2". + +If ""="" Then Set Patch$Dir +If ""="" AND ""="" Then Set Alias$patch /.patch %%*0 +IconSprites .!Sprites Index: !Patch/!Help,feb =================================================================== RCS file: !Patch/!Help,feb diff -N !Patch/!Help,feb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !Patch/!Help,feb 11 Mar 2005 06:14:57 -0000 1.1 @@ -0,0 +1,7 @@ +| This file is part of the RISC OS Packaging Project distribution of Patch. +| Copyright © 2005 Graham Shaw. +| Distribution and use are subject to the GNU General Public License +| (version 2 or later), a copy of which may be found in the file +| ".GPL-2". + +Filer_Run .README Index: !Patch/!Run,feb =================================================================== RCS file: !Patch/!Run,feb diff -N !Patch/!Run,feb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !Patch/!Run,feb 11 Mar 2005 06:14:57 -0000 1.1 @@ -0,0 +1,9 @@ +| This file is part of the RISC OS Packaging Project distribution of Patch. +| Copyright © 2005 Graham Shaw. +| Distribution and use are subject to the GNU General Public License +| (version 2 or later), a copy of which may be found in the file +| ".GPL-2". + +Set Patch$Dir +Set Alias$patch /.patch %%*0 +IconSprites .!Sprites Index: !Patch/!Sprites.uue =================================================================== RCS file: !Patch/!Sprites.uue diff -N !Patch/!Sprites.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !Patch/!Sprites.uue 11 Mar 2005 06:14:57 -0000 1.1 @@ -0,0 +1,12 @@ +begin 707 !Patch/!Sprites,ff9 +M`0```!````"0`0``@`$``"%P871C:`````````0````0``````````<````L +M````+`````P````````````````````````````````S````=P=P`'!P`'`` +M`#,`````````!W```'`'<'``<```````````,W!W<`!W<'!P<`!P```S```` +M``````=P`'!P`'=P`'```````````#,```!W!W``<`!W!P``,P`````````` +M```````````````````````S``"P"P`+L+L`"["P`#,`````````!["PL+`` +M"["PL+``````````,W!WL`NPNP`+L`"PNP`S``````````>P`+"P``NPL+"P +M`````````#,``+``L+``"P`+L+``,P`````````````````````````````` +M```S`````````````````#,`````````````````````````````````,P`` +D```````````````S```````````````````````````````` +` +end Index: !Patch/!Sprites11.uue =================================================================== RCS file: !Patch/!Sprites11.uue diff -N !Patch/!Sprites11.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !Patch/!Sprites11.uue 11 Mar 2005 06:14:57 -0000 1.1 @@ -0,0 +1,59 @@ +begin 707 !Patch/!Sprites11,ff9 +M`0```!````#,"0``O`D``"%P871C:`````````@```!#``````````\````L +M````+````&D!+1@````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M`````````````````````````````#$3``!W=W<```!W=W<```````````!W +M=W<````Q$P```````#,S`'!W=W<'`'!W=W<'`````````'!W=W<'```S,P`` +M`````#,S`'<'`'!W`'<'`'!W`````````'<'`'!W```S,P```````#$3`'<` +M``!W`'<```!W`````````'<``'!W```Q$P```````````'<`=P!W`'<`=P!W +M`````````'<``'=W`````````````````'<`=P!W`'<`=P!W`````````'<` +M<'=W`````````````````'<`=P!W`'<`=P!W`'=W=W=W`'<`=P=W```````` +M`````````'<`=W=W`'<`=W=W`'=W=W=W`'=P=P!W`````````````#$3`'<` +M<'<'`'<`<'<'`````````'=W!P!W```Q$P```````#,S`'<``````'<````` +M`````````'=W``!W```S,P```````#,S`'<``````'<``````````````'<' +M``!W```S,P```````#$3`'<'`'!W`'<'`'!W`````````'<'`'!W```Q$P`` +M`````````'!W=W<'`'!W=W<'`````````'!W=W<'``````````````````!W +M=W<```!W=W<```````````!W=W<````````````````````````````````` +M```````````````````````````````````````````````````````````` +M`````````````````#$3``````````!W=W<``'<```!W`'<```!W```Q$P`` +M`````#,S`````````'!W=W<'`'<```!W`'<```!W```S,P```````#,S```` +M=P```'<'`'!W`'<'``!W`'<```!W```S,P```````#$3````=P```'<```!W +M`'=W``!W`'<```!W```Q$P``````````````=P```'<``````'=W!P!W`'<` +M``!W````````````````````=P```'<``````'=P=P!W`'<```!W```````` +M`````````'=W=W=W`'<`<'=W`'<`=P=W`'<```!W`````````````````'=W +M=W=W`'<`<'=W`'<`<'=W`'<```!W`````````````#$3````=P```'<```!W +M`'<``'=W`'<```!W```Q$P```````#,S````=P```'<```!W`'<``'!W`'<` +M``!W```S,P```````#,S````=P```'<```!W`'<```!W`'<```!W```S,P`` +M`````#$3````=P```'<'`'!W`'<```!W`'<'`'!W```Q$P`````````````` +M`````'!W=W<'`'<```!W`'!W=W<'``````````````````````````!W=W<` +M`'<```!W``!W=W<````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M`````#$3````````L+N[``"PNP"PN[L+`+L`L`L`NP`Q$P```````#,S```` +M````L+N["P"[NPNPN[L+L+L+L`L`NP`S,P```````#,S````=P``L`NPN["[ +ML+L`L`L`N[N[L`L`NP`S,P```````#$3````=P``L`L`N[`+`+L`L`L`NP"[ +ML`L`NP`Q$P``````````````=P``L`L`N[`+`+L`L`L`NP``L`L`NP`````` +M````````````=P``L`NPN[`+`+L`L`L`NP``L`L`NP```````````````'=W +M=W=WL+N["["[N[L`L`L`NP``L+N[NP```````````````'=W=W=WL+N[`+"[ +MN[L`L`L`NP``L+N[NP```````````#$3````=P``L`L``+`+`+L`L`L`NP`` +ML`L`NP`Q$P```````#,S````=P``L`L``+`+`+L`L`L`NP``L`L`NP`S,P`` +M`````#,S````=P``L`L``+`+`+L`L`L`NP"[L`L`NP`S,P```````#$3```` +M=P``L`L``+`+`+L`L`L`N[N[L`L`NP`Q$P``````````````````L`L``+`+ +M`+L`L`L`L+L+L`L`NP``````````````````````L`L``+`+`+L`L`L``+L` +ML`L`NP`````````````````````````````````````````````````````` +M`````````````````````````````````````````````````````#$3```` +M```````````````````````````````Q$P```````#,S```````````````` +M```````````````````S,P```````#,S```````````````````````````` +M```````S,P```````#$3```````````````````````````````````Q$P`` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M`````````````````#$3```````````````````````````````````Q$P`` +M`````#,S```````````````````````````````````S,P```````#,S```` +M```````````````````````````````S,P```````#$3```````````````` +M```````````````````Q$P`````````````````````````````````````` +M```````````````````````````````````````````````````````````` +M```````````````````````````````````````````````````````````` +=```````````````````````````````````````` +` +end Index: !Patch/!Sprites22.uue =================================================================== RCS file: !Patch/!Sprites22.uue diff -N !Patch/!Sprites22.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !Patch/!Sprites22.uue 11 Mar 2005 06:14:57 -0000 1.1 @@ -0,0 +1,20 @@ +begin 707 !Patch/!Sprites22,ff9 +M`0```!````#D`@``U`(``"%P871C:`````````0````A``````````<````L +M````+````!L````````````````````````````````````````````````` +M`````````#,`=P<`=P<`````=P<`,P``````,W``<'``<````'``<``S```` +M````<'!P<'!P````<`!W``````````!P<'!P<'!P=W=P<'``````````,W!P +M!W!P!P```'`'<``S```````S<```<```````<`!P`#,`````````=W<`=W<` +M````=P<````````````````````````````````````S`````'<'<`!P<`!P +M`#,``````#,`<`!P`'!P`'!P`'``,P````````!P`'```'`'<'``<``````` +M````<'=W<'!W<'!P<`!P`````````#,`<`!P`'!P`'=P`'``,P``````,P!P +M`'``<'``<'``<``S`````````````'<'<`!P`'<'```````````````````` +M````````````````,P```+L`L`"["[``"PLS```````S`'``"PL+"[``"PL+ +M"S,`````````<``+"PL+L``+``L+`````````'!W=[L`NPNP``L`NPL````` +M```S`'``"P`+"[``"P`+"S,``````#,`<``+``L+L``+"PL+,P`````````` +M``L`"PNP`+``"PL``````````````````````````````````#,````````` +M````````,P``````,P`````````````````S```````````````````````` +M````````````````````````````````````,P`````````````````S```` +M```S`````````````````#,````````````````````````````````````` +0```````````````````````` +` +end Index: RiscPkg/Control =================================================================== RCS file: RiscPkg/Control diff -N RiscPkg/Control --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Control 11 Mar 2005 07:03:43 -0000 1.1 @@ -0,0 +1,13 @@ +Source: Patch +Section: Text +Priority: Standard +Licence: Free +Maintainer: Graham Shaw +Standards-Version: 0.1.0 +Version: 2.5.4-0 +Description: A tool for applying diff files + The patch command takes a patch file containing a difference listing + produced by the diff command and applies those differences to one or + more original files, producing patched versions. + +Package: Patch Index: RiscPkg/Copyright =================================================================== RCS file: RiscPkg/Copyright diff -N RiscPkg/Copyright --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Copyright 11 Mar 2005 06:17:17 -0000 1.1 @@ -0,0 +1,25 @@ +This is the RISC OS Packaging Project distribution of GNU Patch. + +GNU Patch is published by the Free Software Foundation (www.fsf.org). + +Larry Wall wrote the original version of `patch'. + +Paul Eggert removed arbitrary limits; added support for binary +files, setting file times, and deleting files; and made it conform +better to POSIX. + +Wayne Davison added unidiff support. + +David MacKenzie added configuration and backup support. + +The upstream sources were downloaded from the URL: + +http://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz + +on 11th March 2005. There is a homepage at the URL: + +http://www.gnu.org/software/patch/ + +Distribution and use are subject to the GNU General Public License +(version 2 or later), a copy of which may be found in the file +".GPL-2". Index: RiscPkg/Patch.inc =================================================================== RCS file: RiscPkg/Patch.inc diff -N RiscPkg/Patch.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Patch.inc 11 Mar 2005 07:04:15 -0000 1.1 @@ -0,0 +1,10 @@ +RiscPkg/* +SysVars/Alias=24* +SysVars/*=24Dir +Sprites/!* +Apps/Text/!Patch/!Boot +Apps/Text/!Patch/!Run +Apps/Text/!Patch/!Help +Apps/Text/!Patch/!Sprites* +Apps/Text/!Patch/patch +Apps/Text/!Patch/README Index: RiscPkg/Rules =================================================================== RCS file: RiscPkg/Rules diff -N RiscPkg/Rules --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Rules 11 Mar 2005 07:04:15 -0000 1.1 @@ -0,0 +1,92 @@ +# This file is part of the RISC OS Packaging Project distribution of Patch. +# Copyright © 2005 Graham Shaw. +# Distribution and use are subject to the GNU General Public License +# (version 2 or later), a copy of which may be found in the file +# ".GPL-2". + +VERSION = 2.5.4-0 +PACKAGES = Patch_$(VERSION) + +BIN = \ + patch + +TEXT = \ + README + +SPRITES = \ + !Patch/!Sprites \ + !Patch/!Sprites11 \ + !Patch/!Sprites22 + +.PHONY: all +all: uudecode + make -f Makefile.riscpkg + rm -rf Temp + mkdir -p Temp/RiscPkg + cp RiscPkg/Copyright Temp/RiscPkg/ + mkdir -p Temp/Apps/Text + cp -R !Patch Temp/Apps/Text/ + cp $(BIN) $(TEXT) Temp/Apps/Text/!Patch/ + + chmod -R 444 Temp/Apps + cp -R SysVars Temp/SysVars/ + cp -R Sprites Temp/Sprites/ + make -C Temp -f ../RiscPkg/Rules $(PACKAGES) + rm -rf Temp + +.PHONY: clean +clean: + rm -f $(addprefix RiscPkg/,$(PACKAGES)) + make -f Makefile.riscpkg clean + +.PHONY: distclean +distclean: uuencode + rm -f $(SPRITES) + rm -f $(addprefix RiscPkg/,$(PACKAGES)) + make -f Makefile.riscpkg distclean + +.PHONY: $(PACKAGES) +$(PACKAGES): %: + riscpkg-gencontrol $(firstword $(subst _, ,$@)) < ../RiscPkg/Control > RiscPkg/Control + rm -f ../RiscPkg/$@ + zip -r ../RiscPkg/$@ * -i@../RiscPkg/$(firstword $(subst _, ,$@)).inc + +# ---------------------------------------- +# $(uu) == encode +# ---------------------------------------- + +.PHONY: uuencode + +ifeq (encode,$(uu)) + +uuencode: $(addsuffix .uue,$(SPRITES)) + +%.uue: % + uuencode $^,ff9 $^,ff9 > $@ + +else + +uuencode: + make -f RiscPkg/Rules uuencode uu=encode + +endif + +# ---------------------------------------- +# $(uu) == decode +# ---------------------------------------- + +.PHONY: uudecode + +ifeq (decode,$(uu)) + +uudecode: $(SPRITES) + +%: %.uue + uudecode -o $@,ff9 $^ + +else + +uudecode: + make -f RiscPkg/Rules uudecode uu=decode + +endif Index: Sprites/!patch =================================================================== RCS file: Sprites/!patch diff -N Sprites/!patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Sprites/!patch 11 Mar 2005 06:16:33 -0000 1.1 @@ -0,0 +1 @@ +.!Sprites \ No newline at end of file Index: SysVars/Alias=24patch =================================================================== RCS file: SysVars/Alias=24patch diff -N SysVars/Alias=24patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SysVars/Alias=24patch 11 Mar 2005 06:16:12 -0000 1.1 @@ -0,0 +1 @@ +/.patch %*0 \ No newline at end of file Index: SysVars/Patch=24Dir =================================================================== RCS file: SysVars/Patch=24Dir diff -N SysVars/Patch=24Dir --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SysVars/Patch=24Dir 11 Mar 2005 06:16:12 -0000 1.1 @@ -0,0 +1 @@ + \ No newline at end of file