Index: Makefile.riscpkg =================================================================== RCS file: Makefile.riscpkg diff -N Makefile.riscpkg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Makefile.riscpkg 1 Mar 2005 03:25:23 -0000 1.1 @@ -0,0 +1,16 @@ +# This file is part of the RISC OS Packaging Project distribution of SharUtils. +# Copyright © 2005 Graham Shaw. +# Distribution and use are subject to the terms applicable to SharUtils as a +# whole. + +.PHONY: all +all: + make -C intl -f Makefile.riscpkg deps=$(deps) + make -C lib -f Makefile.riscpkg deps=$(deps) + make -C src -f Makefile.riscpkg deps=$(deps) + +.PHONY: clean +clean: + make -C intl -f Makefile.riscpkg clean + make -C lib -f Makefile.riscpkg clean + make -C src -f Makefile.riscpkg clean Index: config.h =================================================================== RCS file: config.h diff -N config.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ config.h 1 Mar 2005 03:21:35 -0000 1.1 @@ -0,0 +1,41 @@ +/* Special definitions for sharutils, processed by autoheader. + Copyright (C) 1994 Free Software Foundation, Inc. + François Pinard , 1994. + Ulrich Drepper , 1995. +*/ + +/* Hand-edited from acconfig.h by Graham Shaw to match the + * features provided by GCC and UnixLib. */ + +/* Define if the current hostname may be found in /etc/systemid. */ +#undef HAVE_ETC_SYSTEMID + +/* Define to the name of the distribution. */ +#define PACKAGE "sharutils" + +/* Define to 1 if ANSI function prototypes are usable. */ +#define PROTOTYPES 1 + +/* Define to the version of the distribution. */ +#define VERSION "4.2.1" + +/* Define to 1 for better use of the debugging malloc library. See + site ftp.antaire.com in antaire/src, file dmalloc/dmalloc.tar.gz. */ +#undef WITH_DMALLOC + +/* Define if your locale.h file contains LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + +/* Define to 1 if NLS is requested. */ +#undef ENABLE_NLS + +/* Define as 1 if you have catgets and don't want to use GNU gettext. */ +#undef HAVE_CATGETS + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +#undef HAVE_GETTEXT + +/* Define as 1 if you have the stpcpy function. */ +#define HAVE_STPCPY 1 + +#define HAVE_STRERROR 1 Index: !UUDecode/!Boot,feb =================================================================== RCS file: !UUDecode/!Boot,feb diff -N !UUDecode/!Boot,feb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUDecode/!Boot,feb 1 Mar 2005 03:40:46 -0000 1.2 @@ -0,0 +1,8 @@ +| This file is part of the RISC OS Packaging Project distribution of SharUtils. +| Copyright © 2005 Graham Shaw. +| Distribution and use are subject to the GNU General Public License, +| a copy of which may be found in the file ".GPL-2". + +If ""="" Then Set UUDecode$Dir +If ""="" AND ""="" Then Set Alias$uudecode /.uudecode %%*0 +IconSprites .!Sprites Index: !UUDecode/!Run,feb =================================================================== RCS file: !UUDecode/!Run,feb diff -N !UUDecode/!Run,feb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUDecode/!Run,feb 1 Mar 2005 02:14:59 -0000 1.1 @@ -0,0 +1,8 @@ +| This file is part of the RISC OS Packaging Project distribution of SharUtils. +| Copyright © 2005 Graham Shaw. +| Distribution and use are subject to the GNU General Public License, +| a copy of which may be found in the file ".GPL-2". + +Set UUDecode$Dir +Set Alias$uudecode /.uudecode %%*0 +IconSprites .!Sprites Index: !UUDecode/!Sprites.uue =================================================================== RCS file: !UUDecode/!Sprites.uue diff -N !UUDecode/!Sprites.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUDecode/!Sprites.uue 1 Mar 2005 02:15:38 -0000 1.1 @@ -0,0 +1,20 @@ +begin 505 !UUDecode/!Sprites,ff9 +M`0```!````#D`@``U`(``"%U=61E8V]D90````0````0``````````<````L +M````@`$```P```!W=W=W=W=W=W=W=P```````````'<``````````'=P```` +M````````=P``````````=P`````'``````!W``<`!W``<`!W=W=W!P<````` +M`'<`!P`'<`!P`'=W=W=W=P``````=P`'``=P`'``=W=W=W<'``````!W`'1W +M!$!W1P!W=ZIW=W!W=P```'<```````!W=W=W=W=W=W=W````=P```````'?X +M_XB(B(@(`'<```!W=W=W=W=W=_B(CXB("+`+=P```'=W=W=W=P=W^(B/B`BP +MNPMW````````````!W?X_X@(``"["W<````````````'=XB(")"9F0``=P`` +M``````````=WB`B0F9F9F0EW````````````!W<(D)F9F9F9"7<````````` +M```'=Y"9F9F9F9D)=P```````````'=W=W=W=W=W=W=W````____________ +M_P````````#_________________`````````/________________\````` +M````_____________________P\```#_________________``#P#P```/__ +M______________\``/__````_________________P``\`\```#_________ +M____________________________________________________________ +M______________\`````````_________________P````````#_________ +M________`````````/________________\`````````________________ +M_P````````#_________________`````````/________________\````` +0````_________________P`` +` +end Index: !UUDecode/!Sprites22.uue =================================================================== RCS file: !UUDecode/!Sprites22.uue diff -N !UUDecode/!Sprites22.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUDecode/!Sprites22.uue 1 Mar 2005 02:15:38 -0000 1.1 @@ -0,0 +1,35 @@ +begin 707 !UUDecode/!Sprites22,ff9 +M`0```!````",!0``?`4``"%U=61E8V]D90````0````A``````````<````L +M````U`(``!L```!W=W=W=W=W=W=W=P````````````<```````````=P```` +M````````!P``````````!W`````````````'```````````'<``````````` +M``<```````````=P````````````!U`%4`55`%4`!W!W=W<````````'4`50 +M!54`50`'<'=W=P````````=0!5`%50!5`'=W=W=W````````!U`%4`55`%4` +M=W=W=W<````````'4`50!54`50!W=W=W=P````````=0!5`%50!5``=PD'=W +M=P``````!U`%4`55`%4`!W`)=W<'```````'4`50!54`50!WF7=W=W=W=P`` +M``<`554`4%4%``=Y<'=W``!P````!P``````````EW=W=P<``'`````'```` +M````<'=W=W=W=W=W=P````<```````!PB(B(B(B(B`AP````!P```````'#X +M_XB(B(B(`'````!W=W=W=W=W=_B(CXB(B`@`<`````>0=W=W=W=W^(B/B(B( +M``MP````!YF9F9F9=W#XB(^(B`BP"W````!W=W=W=W<'.GPL-2". + +If ""="" Then Set UUEncode$Dir +If ""="" AND ""="" Then Set Alias$uuencode /.uuencode %%*0 +IconSprites .!Sprites Index: !UUEncode/!Run,feb =================================================================== RCS file: !UUEncode/!Run,feb diff -N !UUEncode/!Run,feb --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUEncode/!Run,feb 1 Mar 2005 02:14:59 -0000 1.1 @@ -0,0 +1,8 @@ +| This file is part of the RISC OS Packaging Project distribution of SharUtils. +| Copyright © 2005 Graham Shaw. +| Distribution and use are subject to the GNU General Public License, +| a copy of which may be found in the file ".GPL-2". + +Set UUEncode$Dir +Set Alias$uuencode /.uuencode %%*0 +IconSprites .!Sprites Index: !UUEncode/!Sprites.uue =================================================================== RCS file: !UUEncode/!Sprites.uue diff -N !UUEncode/!Sprites.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUEncode/!Sprites.uue 1 Mar 2005 02:15:38 -0000 1.1 @@ -0,0 +1,20 @@ +begin 505 !UUEncode/!Sprites,ff9 +M`0```!````#D`@``U`(``"%U=65N8V]D90````0````0``````````<````L +M````@`$```P```!W=W=W=W=W=W=W=P```````````'?X_XB(B(@(`'=P```` +M````````=_B(CXB("+`+=P`````'``````!W^(B/B`BPNPMW=W=W!P<````` +M`'?X_X@(``"["W=W=W=W=P``````=XB(")"9F0``=W=W=W<'``````!WB`B0 +MF9F9F0EW=ZIW=W!W=P```'<(D)F9F9EW=W=W=W=W=W=W````=Y"9F9F9F7<` +M`````````'<```!W=W=W=W=W=P``````````=P```'=W=W=W=P=W``<`!W`` +M<`!W````````````!W<`!P`'<`!P`'<````````````'=P`'``=P`'``=P`` +M``````````=W`'1W!$!W1P!W````````````!W<``````````'<````````` +M```'=P``````````=P```````````'=W=W=W=W=W=W=W````____________ +M_P````````#_________________`````````/________________\````` +M````_____________________P\```#_________________``#P#P```/__ +M______________\``/__````_________________P``\`\```#_________ +M____________________________________________________________ +M______________\`````````_________________P````````#_________ +M________`````````/________________\`````````________________ +M_P````````#_________________`````````/________________\````` +0````_________________P`` +` +end Index: !UUEncode/!Sprites22.uue =================================================================== RCS file: !UUEncode/!Sprites22.uue diff -N !UUEncode/!Sprites22.uue --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ !UUEncode/!Sprites22.uue 1 Mar 2005 02:15:38 -0000 1.1 @@ -0,0 +1,35 @@ +begin 707 !UUEncode/!Sprites22,ff9 +M`0```!````",!0``?`4``"%U=65N8V]D90````0````A``````````<````L +M````U`(``!L```!W=W=W=W=W=W=W=P```````````(>(B(B(B(B(``=P```` +M````````A_^/B(B(B`@`!W````````````"'C_B(B(B(```'<``````````` +M`(>/^(B(B`BP``=P````````````AX_XB(B(`+L`!W!W=W<```````"'_X^( +MB`BPNP`'<'=W=P```````(>(B(B(`+N[`'=W=W=W````````AXB(B`BPN[L` +M=W=W=W<```````"'B(B(``"PNP!W=W=W=P```````(>(B`B0F0D```=PD'=W +M=P``````AXB(`)F9F9D`!W`)=W<'``````"'B`B0F9F9F0!WF7=W=W=W=P`` +M`(>(`)F9F9F9``=Y<'=W``!P````APB0F9F9F9D`EW=W=P<``'````"'`)F9 +MF9F9>7=W=W=W=W=W=P````>0F9F9F9EY``````````!P````!YF9F9F9F7D` +M`````````'````!W=W=W=W=W=P``````````<`````>0=W=W=W=W```````` +M``!P````!YF9F9F9=W``50!54`50!7````!W=W=W=W<'<`!5`%50!5`%<``` +M``````````=P`%4`55`%4`5P````````````!W``50!54`50!7`````````` +M```'<`!5`%50!5`%<`````````````=P`%4`55`%4`5P````````````!W`` +M50!54`50!7`````````````'<`!5`%50!5`%<`````````````=P`%!5!0!5 +M50!P````````````!W```````````'`````````````'<```````````<``` +M``````````=P``````````!P````````````!W```````````'`````````` +M``!W=W=W=W=W=W=W=P```/___________P\`````````________________ +M#P````````#_______________\/`````````/_______________P\````` +M````________________#P````````#_______________\/`````````/__ +M_____________P\`````````________________#P````````#_________ +M____________`````/____________________\`````________________ +M#P``_P````#_______________\/``#_`````/_______________P\``/\` +M````________________#P#P_P\```#_______________\/``#_`````/__ +M____________________________________________________________ +M________________________________________________`````````/#_ +M______________\`````````\/_______________P````````#P________ +M________`````````/#_______________\`````````\/______________ +M_P````````#P________________`````````/#_______________\````` +M````\/_______________P````````#P________________`````````/#_ +M______________\`````````\/_______________P````````#P________ +M________`````````/#_______________\`````````\/______________ +5_P````````#P________________ +` +end Index: RiscPkg/Control =================================================================== RCS file: RiscPkg/Control diff -N RiscPkg/Control --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Control 1 Mar 2005 03:24:37 -0000 1.1 @@ -0,0 +1,30 @@ +Source: SharUtils +Section: File +Priority: Important +Licence: Free +Maintainer: Graham Shaw +Standards-Version: 0.1.0 +Version: 4.2.1-0 +Description: GNU shar utilities. + This package provides the shar, unshar, uuencode and uudecode commands, + although only the last two are currently built. + . + The shar command makes a 'shell archive' out of a collection of files, + suitable for transmission by e-mail. The unshar command searches a + message for the start of a shell archive, and unpacks it if it finds one. + . + The uuencode command converts a binary file into uu or base-64 format, + again suitable for transmission by e-mail. The uudecode command reverses + this process. + +Package: UUEncode +Description: UU and base-64 file encoder. + The uuencode command converts a binary file into uu or base-64 format. + These increase the size of the file by 37% and 35% respectively, but + avoid use of characters that are likely to be corrupted during + transmission by e-mail. + +Package: UUDecode +Description: UU and base-64 file decoder. + The uudecode command decodes a file created by uuencode. This can be + in uu or base-64 format. Index: RiscPkg/Copyright =================================================================== RCS file: RiscPkg/Copyright diff -N RiscPkg/Copyright --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Copyright 1 Mar 2005 02:31:30 -0000 1.1 @@ -0,0 +1,14 @@ +This is the RISC OS Packaging Project distribution of GNU SharUtils. + +GNU SharUtils is published by the Free Software Foundation (www.fsf.org). + +The upstream sources were downloaded from the URL: + +http://ftp.gnu.org/gnu/sharutils/sharutils-4.2.1.tar.gz + +on 15th February 2005. There is a homepage at the URL: + +http://www.gnu.org/software/sharutils/ + +Distribution and use are subject to the GNU General Public License, +a copy of which may be found in the file ".GPL-2". Index: RiscPkg/Rules =================================================================== RCS file: RiscPkg/Rules diff -N RiscPkg/Rules --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/Rules 1 Mar 2005 03:29:48 -0000 1.2 @@ -0,0 +1,78 @@ +VERSION = 4.2.1-0 +PACKAGES = UUEncode_$(VERSION) UUDecode_$(VERSION) + +SPRITES = \ + !UUEncode/!Sprites \ + !UUEncode/!Sprites22 \ + !UUDecode/!Sprites \ + !UUDecode/!Sprites22 + +.PHONY: all +all: uudecode + make -f Makefile.riscpkg deps=true + rm -rf Temp + mkdir -p Temp/RiscPkg + mkdir -p Temp/Apps/File + cp RiscPkg/Copyright Temp/RiscPkg/ + cp -R !UUEncode Temp/Apps/File/ + cp -R !UUDecode Temp/Apps/File/ + cp src/uuencode Temp/Apps/File/!UUEncode + cp src/uudecode Temp/Apps/File/!UUDecode + + 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: uuencode + rm -f $(addprefix RiscPkg/,$(PACKAGES)) + rm -f $(SPRITES) + make -f Makefile.riscpkg clean + +.PHONY: $(PACKAGES) +$(PACKAGES): %: + riscpkg-gencontrol $(firstword $(subst _, ,$@)) < ../RiscPkg/Control > RiscPkg/Control + rm -f ../RiscPkg/$@ + zip -r ^.RiscPkg.$(subst .,/,$@) * -i@^.RiscPkg.$(subst .,/,$(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: RiscPkg/UUDecode.inc =================================================================== RCS file: RiscPkg/UUDecode.inc diff -N RiscPkg/UUDecode.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/UUDecode.inc 1 Mar 2005 03:25:23 -0000 1.1 @@ -0,0 +1,9 @@ +RiscPkg.* +SysVars.Alias=24uudecode +SysVars.UUDecode=24Dir +Sprites.!uudecode +Apps.File.!UUDecode.!Boot +Apps.File.!UUDecode.!Run +Apps.File.!UUDecode.!Sprites +Apps.File.!UUDecode.!Sprites22 +Apps.File.!UUDecode.uudecode Index: RiscPkg/UUEncode.inc =================================================================== RCS file: RiscPkg/UUEncode.inc diff -N RiscPkg/UUEncode.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ RiscPkg/UUEncode.inc 1 Mar 2005 03:25:23 -0000 1.1 @@ -0,0 +1,9 @@ +RiscPkg.* +SysVars.Alias=24uuencode +SysVars.UUEncode=24Dir +Sprites.!uuencode +Apps.File.!UUEncode.!Boot +Apps.File.!UUEncode.!Run +Apps.File.!UUEncode.!Sprites +Apps.File.!UUEncode.!Sprites22 +Apps.File.!UUEncode.uuencode Index: Sprites/!uudecode =================================================================== RCS file: Sprites/!uudecode diff -N Sprites/!uudecode --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Sprites/!uudecode 1 Mar 2005 02:51:46 -0000 1.1 @@ -0,0 +1 @@ +.!Sprites \ No newline at end of file Index: Sprites/!uuencode =================================================================== RCS file: Sprites/!uuencode diff -N Sprites/!uuencode --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Sprites/!uuencode 1 Mar 2005 02:51:46 -0000 1.1 @@ -0,0 +1 @@ +.!Sprites \ No newline at end of file Index: SysVars/Alias=24uudecode =================================================================== RCS file: SysVars/Alias=24uudecode diff -N SysVars/Alias=24uudecode --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SysVars/Alias=24uudecode 1 Mar 2005 02:50:27 -0000 1.1 @@ -0,0 +1 @@ +/.uudecode %*0 \ No newline at end of file Index: SysVars/Alias=24uuencode =================================================================== RCS file: SysVars/Alias=24uuencode diff -N SysVars/Alias=24uuencode --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SysVars/Alias=24uuencode 1 Mar 2005 02:50:27 -0000 1.1 @@ -0,0 +1 @@ +/.uuencode %*0 \ No newline at end of file Index: SysVars/UUDecode=24Dir =================================================================== RCS file: SysVars/UUDecode=24Dir diff -N SysVars/UUDecode=24Dir --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SysVars/UUDecode=24Dir 1 Mar 2005 02:50:27 -0000 1.1 @@ -0,0 +1 @@ + \ No newline at end of file Index: SysVars/UUEncode=24Dir =================================================================== RCS file: SysVars/UUEncode=24Dir diff -N SysVars/UUEncode=24Dir --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ SysVars/UUEncode=24Dir 1 Mar 2005 02:50:27 -0000 1.1 @@ -0,0 +1 @@ + \ No newline at end of file Index: intl/Makefile.riscpkg =================================================================== RCS file: intl/Makefile.riscpkg diff -N intl/Makefile.riscpkg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ intl/Makefile.riscpkg 1 Mar 2005 03:25:23 -0000 1.1 @@ -0,0 +1,42 @@ +# This file is part of the RISC OS Packaging Project distribution of SharUtils. +# Copyright © 2005 Graham Shaw. +# Distribution and use are subject to the terms applicable to SharUtils as a +# whole. + +include fixdeps:Rules/make + +CPPFLAGS = -I. -I.. -I../lib \ + -DHAVE_CONFIG_H \ + -DGNULOCALEDIR=\"/usr/share/locale\" \ + -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" + +CCFLAGS = -mthrowback -munixlib -mpoke-function-name -O2 + +OBJ = \ + bindtextdom.o \ + dcgettext.o \ + dgettext.o \ + finddomain.o \ + gettext.o \ + intl-compat.o \ + loadmsgcat.o \ + localealias.o \ + textdomain.o + +.PHONY: all +all: libintl.a + +.PHONY: clean +clean: + rm -f libintl.a + rm -f $(wildcard *.d) + rm -f $(wildcard *.o) + +libintl.a: $(OBJ) + rm -f libintl.a + mkdir -p a + libfile -c a.libintl $(OBJ:%.o=o.%) + +ifeq ($(deps),true) +include $(OBJ:.o=.d) +endif Index: lib/Makefile.riscpkg =================================================================== RCS file: lib/Makefile.riscpkg diff -N lib/Makefile.riscpkg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/Makefile.riscpkg 1 Mar 2005 03:25:23 -0000 1.1 @@ -0,0 +1,30 @@ +# This file is part of the RISC OS Packaging Project distribution of SharUtils. +# Copyright © 2005 Graham Shaw. +# Distribution and use are subject to the terms applicable to SharUtils as a +# whole. + +include fixdeps:Rules/make + +CPPFLAGS = -I. -I.. -I../lib -DHAVE_CONFIG_H +CCFLAGS = -mthrowback -munixlib -mpoke-function-name -O2 + +OBJ = \ + error.o + +.PHONY: all +all: libshar.a + +.PHONY: clean +clean: + rm -f libshar.a + rm -f $(wildcard *.d) + rm -f $(wildcard *.o) + +libshar.a: $(OBJ) + rm -f libshar.a + mkdir -p a + $(AR) -c a.libshar $(OBJ:%.o=o.%) + +ifeq ($(deps),true) +include $(OBJ:.o=.d) +endif Index: lib/error.c =================================================================== RCS file: /var/cvs/SharUtils/lib/error.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- lib/error.c 15 Feb 2005 07:26:40 -0000 1.1.1.1 +++ lib/error.c 1 Mar 2005 03:23:09 -0000 1.2 @@ -45,7 +45,9 @@ void exit (); #endif +#ifndef __riscos__ #include +#endif #define _(str) (str) Index: lib/system.h =================================================================== RCS file: /var/cvs/SharUtils/lib/system.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- lib/system.h 15 Feb 2005 07:26:40 -0000 1.1.1.1 +++ lib/system.h 1 Mar 2005 03:23:09 -0000 1.2 @@ -177,7 +177,9 @@ # define setlocale(Category, Locale) #endif +#ifndef __riscos__ #include +#endif #define _(Str) gettext (Str) #ifdef gettext_noop Index: src/Makefile.riscpkg =================================================================== RCS file: src/Makefile.riscpkg diff -N src/Makefile.riscpkg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/Makefile.riscpkg 1 Mar 2005 03:35:37 -0000 1.3 @@ -0,0 +1,34 @@ +# This file is part of the RISC OS Packaging Project distribution of SharUtils. +# Copyright © 2005 Graham Shaw. +# Distribution and use are subject to the terms applicable to SharUtils as a +# whole. + +include fixdeps:Rules/make + +CPPFLAGS = -I. -I.. -I../lib \ + -DHAVE_CONFIG_H \ + -DLOCALEDIR=\"/xyzzy\" + +CCFLAGS = -mthrowback -munixlib -mpoke-function-name -O2 + +LIB = ../intl/libintl.a \ + ../lib/libshar.a + +BIN = uuencode uudecode + +.PHONY: all +all: $(BIN) + +.PHONY: clean +clean: + rm -f $(wildcard *.d) + rm -f $(wildcard *.o) + rm -f $(BIN) + +$(BIN): %: %.o $(LIB) + $(LD) -o $@ $< $(addprefix -l,$(LIB)) + +ifeq ($(deps),true) +include uuencode.d +include uudecode.d +endif Index: src/uudecode.c =================================================================== RCS file: /var/cvs/SharUtils/src/uudecode.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- src/uudecode.c 15 Feb 2005 07:26:41 -0000 1.1.1.1 +++ src/uudecode.c 1 Mar 2005 02:10:49 -0000 1.2 @@ -60,6 +60,11 @@ #include #include "getopt.h" +#ifdef riscos +#include "unixlib/local.h" +int __riscosify_control = __RISCOSIFY_FILETYPE_EXT; +#endif /* riscos */ + struct passwd *getpwnam (); static struct option longopts[] = Index: src/uuencode.c =================================================================== RCS file: /var/cvs/SharUtils/src/uuencode.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- src/uuencode.c 15 Feb 2005 07:26:41 -0000 1.1.1.1 +++ src/uuencode.c 1 Mar 2005 02:10:49 -0000 1.2 @@ -61,6 +61,11 @@ #define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) +#ifdef riscos +#include "unixlib/local.h" +int __riscosify_control = __RISCOSIFY_FILETYPE_EXT; +#endif /* riscos */ + static struct option longopts[] = { { "base64", 0, 0, 'm' },