AminetAminet
Search:
84728 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/c/AmigaDate.lha

Mirror:Random
Showing:ppc-morphosgeneric
No screenshot available
Short:Outputs "(dd.mm.yy)" Useful in Makefiles
Author:Tomi Ollila <too at cardhu.cs.hut.fi>
Uploader:too cardhu cs hut fi
Type:dev/c
Architecture:m68k-amigaos
Date:1994-10-19
Download:http://aminet.net/dev/c/AmigaDate.lha - View contents
Readme:http://aminet.net/dev/c/AmigaDate.readme
Downloads:6700

This program Outputs SAS/C AMIGADATE and DICE COMMODORE_DATE style date string
This is most useful in Makefiles, where one can define preprocessor strings.

GNUMakefile example:

#
# Amigadate GNUMakefile example. (You must have amigadate compiled by now ;D)
#

AMIGADATE=	$(shell amigadate)

MAKE=	gmake
CC=	gcc
CFLAGS=	-v -O2 -D__AMIGADATE__='"$(AMIGADATE)"'
LFLAGS= -nostdlib -s


AmigaDate: amigadate.c
	$(CC) $(LFLAGS) -o $ at  amigadate.c


#EOF

This program is re-entrant and can be made resident. Perhaps the easiest way
to do this is to enter `protect amigadate +H' but this may not work with
future OSses.

Tomi Ollila
too at cardhu.cs.hut.fi


Contents of dev/c/AmigaDate.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  269     332  81.0% -lh5- 8afe Mar 31  1994 AmigaDate
[generic]                 1261    4455  28.3% -lh5- 2a58 Mar 31  1994 amigadate.c
[generic]                  459     782  58.7% -lh5- e6c1 Mar 31  1994 AmigaDate.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    1989    5569  35.7%            Oct 19  1994

Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>