home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
disks
/
misc
/
device-handler
/
s
/
build-aminet
Wrap
AmigaDOS Script File
|
1981-06-29
|
2KB
|
81 lines
.key BASENAME/A,SOURCE/A,ROOT/A,AUTHOR/A,UPLOADER/A,SHORT/A,TYPE/A,CLEAN/S
.bra {
.ket }
;
; $VER: build-aminet 37.1 (3.6.95)
;
; (C) Copyright 1995 Marius Gröger
; All Rights Reserved.
;
; AmigaShell script to create an Aminet release. From a bumprev file
; the current release number is extracted and used to form the
; proper readme and archive names. The following directory structure
; and files are assumed to exist:
;
; CWD/{BASENAME}_rev.h · see C= SWTools/bumprev
; CWD/{SOURCE} · a body text for an Aminet readme
; {BASENAME} · name of distribution directory
; {ROOT} · distribution root directory
; {ROOT}/../{BASENAME} · -> implicitely, must be valid
;
; The options in detail:
;
; BASENAME
; Basename of the distribution.
; A file $(BASENAME)_rev.h as created by bumprev must exist.
;
; SOURCE
; Source file which contains the readme body text. The Aminet header
; infos will be prepended.
;
; ROOT
; Distribution root directory. Here goes the readme to, and this is
; what will be archived.
;
; AUTHOR, UPLOADER, SHORT, TYPE
; Texts as required for Aminet contributions.
;
; CLEAN
; If set, previous readmes are deleted.
;
;
; $HISTORY:
;
; 03 Jun 1995 : 037.001 : initial
;
; --------------------- customize this -----------------------
Set LHA C:Lha
Set TAR C:tar
; ----------------- end of customization ---------------------
If EQ "CLEAN" {CLEAN}
Echo "=== removing obsolete readme's ==="
Delete QUIET "{ROOT}/{BASENAME}(%|[0-9])[0-9].[0-9](%|[0-9])(%|[0-9]).readme"
Endif
If NOT EXISTS T:rel
Makedir T:rel
EndIf
Delete QUIET T:rel/#?
Set relname "`version file {BASENAME}_rev.h`"
Set relname `rx "say compress('$relname',' ')"`
Echo >{ROOT}/$relname.readme "Short: {SHORT}*NAuthor: {AUTHOR}*NUploader: {UPLOADER}*NType: {TYPE}*N"
Type {SOURCE} >>{ROOT}/$relname.readme
Copy {ROOT}/$relname.readme T:rel/
Echo "=== creating lha archive ==="
$LHA a -rw T:rel/$relname.lha {ROOT}/// {BASENAME} {BASENAME}.info
$LHA d T:rel/$relname.lha #?.(no|opt0[0-4]0)
Echo "=== creating tar archive ==="
$TAR cvCf t: t:rel.tar rel
UnSet relname
UnSet TAR
UnSet LHA
Echo "=== ready ==="