diff --git a/library/build_archive_amiga b/library/build_archive_amiga new file mode 100755 index 0000000..0dfde7e --- /dev/null +++ b/library/build_archive_amiga @@ -0,0 +1,31 @@ +; Simple release archive build script for Amiga systems. + +; Set the name of the archive and the directory the +; files go into +set dir_name clib2-1.`type c.lib_rev.rev` + +; Start with a clean slate +delete all quiet ram:$dir_name + +; Create the directory, copy all the libraries, header files +; and release note files inside. +makedir ram:$dir_name +copy lib ram:${dir_name}/lib all clone quiet +copy include ram:${dir_name}/include all clone quiet +copy changes ram:$dir_name clone + +; Delete the CVS data from the include directory +delete ram:${dir_name}/include/CVS ram:${dir_name}/include/sys/CVS all quiet + +; Finally, create an lha archive in RAM: +pushcd ram: +lha -r -x -a a ${dir_name}-gcc-68k.lha ${dir_name} +popcd + +; Move the archive back to this directory +copy ram:${dir_name}-gcc-68k.lha "" clone + +; Clean up... +delete ram:$dir_name all quiet +unset dir_name + diff --git a/library/build_archive_unix.sh b/library/build_archive_unix.sh new file mode 100755 index 0000000..d6e4e8e --- /dev/null +++ b/library/build_archive_unix.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# Simple release archive build script for Unix systems. +# I typically build the library with a cross compiler. + +# Set the name of the archive and the directory the +# files go into +export dir_name=clib2-1.`cat c.lib_rev.rev` + +# Start with a clean slate +rm -rf $dir_name + +# Create the directory, copy all the libraries, header files +# and release note files inside. +mkdir $dir_name +cp -a lib $dir_name +cp -a lib.threadsafe $dir_name +cp -a include $dir_name +cp changes $dir_name + +# Delete the CVS data from the include directory +rm -rf ${dir_name}/include/CVS ${dir_name}/include/sys/CVS + +# Finally, create an lha type 5 archive; the Amiga LhA port +# can unpack it. +lha ao5q ${dir_name}-gcc-os4.lha ${dir_name} +