3 # Here we find the recipes for the libraries.
6 # And their file suffix
9 # Here go the new libraries
12 # This is needed as end-of-tape block for the loader
13 ENDBLOCK
=$H316/snippets
/endseq
15 # Where to get the original libraries:
18 # And where to store the original objects
21 # The suffix for library files (in and out)
23 #######################################################################
29 rm -rf $OUTPUT_DIR $ORG_OBJDIR
32 # Generate org directory containing the original library objects
34 if [ ! -d "$ORG_OBJDIR" ]; then
39 cat $tdir/$ORG_LIBDIR/*$LIB_SUFFIX | ldc
-s -l
44 echo "Library Builder start."
45 if [ ! -d "$OUTPUT_DIR" ]; then
46 echo -n "Creating $OUTPUT_DIR:"
47 mkdir
$OUTPUT_DIR && echo "Ok." ||
echo "FAILED!"
52 RECIPE_LIST
=`ls $RECIPE_DIR/*$RECIPE_SUFFIX`
53 for recipe
in $RECIPE_LIST; do
54 lib
=$OUTPUT_DIR/`basename $recipe $RECIPE_SUFFIX`$LIB_SUFFIX
57 for item
in `cat $recipe`; do
58 if ! echo $item |
egrep -q " *#"; then
59 echo "appending $item."
60 cat $item >> $lib ||
(echo "Error! could not find:$item")