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 #######################################################################
28 rm -rf $OUTPUT_DIR $ORG_OBJDIR
31 # Generate org directory containing the original library objects
33 if [ ! -d "$ORG_OBJDIR" ]; then
38 cat $tdir/$ORG_LIBDIR/*$LIB_SUFFIX | ldc
-s -l
43 echo "Library Builder start."
44 if [ ! -d "$OUTPUT_DIR" ]; then
45 echo -n "Creating $OUTPUT_DIR:"
46 mkdir
$OUTPUT_DIR && echo "Ok." ||
echo "FAILED!"
51 RECIPE_LIST
=`ls $RECIPE_DIR/*$RECIPE_SUFFIX`
52 for recipe
in $RECIPE_LIST; do
53 lib
=$OUTPUT_DIR/`basename $recipe $RECIPE_SUFFIX`$LIB_SUFFIX
56 for item
in `cat $recipe`; do
57 echo "appending $item."
58 cat $item >> $lib ||
(echo "Error! could not find:$item")