swh:1:snp:cdcd2bc43331a436e8c659ba93175ef7d7eb339b
Raw File
Tip revision: 4e5d304eb7cd5589b924ffb8b423b6f15511b35d authored by Ron Burkey on 20 October 2018, 17:47:00 UTC
The sample Block I AGC program TRIVIUM, found at the very end of one of
Tip revision: 4e5d304
CopyApolloSource.sh
#!/bin/bash
# This script is used by the VirtualAGC Makefile to copy AGC or AGS
# stuff into the installation-build directory.  The usage is:
#	sh CopyApolloSource.sh dirname sourcename ext win
# where sourcename is something like Luminary131 or FP8 and the 
# dirname is something .../Resources.  EXT is either -pR
# for Mac OS X, or -a for everyone else.  Finally, WIN is either 
# anything non-blank (for Windows systems) or else blank (for anything
# other than Windows).

SOURCENAME=$2
SOURCEDIR=../$SOURCENAME
DESTDIR=$1/source/$SOURCENAME
EXT=$3
WIN=$4

SRCPATHS="*.binsource *.agc *.aea Apollo32.png *.agc.html *.aea.html"
SRCPATHS="$SRCPATHS *.pad *.cbp Makefile Solarium055.lst"

mkdir $DESTDIR

cp ../Contributed/SyntaxHighlight/Prettify/*.js $DESTDIR
cp ../Contributed/SyntaxHighlight/Prettify/*.css $DESTDIR

for srcpath in ${SRCPATHS}; do 
    sources=`find $SOURCEDIR -name $srcpath`
    if [ ! -z "$sources" ]; then
        cp $EXT $sources $DESTDIR
    fi
done
 
#sh ./lst2html.sh $SOURCEDIR/$SOURCENAME.lst $DESTDIR/$SOURCENAME.html $WIN

if [ -f $SOURCEDIR/$SOURCENAME.bin ]; then
    cp $EXT $SOURCEDIR/$SOURCENAME.bin $DESTDIR
fi

if [ -f $SOURCEDIR/$SOURCENAME.symtab ]; then
    cp $EXT $SOURCEDIR/$SOURCENAME.symtab $DESTDIR/$SOURCENAME.bin.symtab
fi
back to top