global: More path repair, add bin/h316 to .gitignore
[h316.git] / lib / iolib / buildlib.sh
deleted file mode 100755 (executable)
index dfb8d27f554b00dafb20f7313e835b2ec0cdef26..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/bash
-
-# Here we find the recipes for the libraries.
-RECIPE_DIR=recipe
-
-# And their file suffix
-RECIPE_SUFFIX=.recipe
-
-# Here go the new libraries
-OUTPUT_DIR=./lib
-
-# This is needed as end-of-tape block for the loader
-ENDBLOCK=$H316/snippets/endseq
-
-# Where to get the original libraries:
-ORG_LIBDIR=original
-
-# And where to store the original objects
-ORG_OBJDIR=org
-
-# The suffix for library files (in and out)
-LIB_SUFFIX=.lib
-#######################################################################
-IFS="
-"
-
-# Clean everything up
-clean() {
-    rm -rf $OUTPUT_DIR $ORG_OBJDIR
-}
-
-# Generate org directory containing the original library objects
-make_org() {
-    if [ ! -d "$ORG_OBJDIR" ]; then
-       mkdir  $ORG_OBJDIR
-    fi
-    tdir=$PWD
-    cd $ORG_OBJDIR
-    cat $tdir/$ORG_LIBDIR/*$LIB_SUFFIX | ldc -s -l
-    cd $tdir
-}
-
-genlib(){
-    echo "Library Builder start."
-    if [ ! -d "$OUTPUT_DIR" ]; then
-       echo -n "Creating $OUTPUT_DIR:"
-       mkdir  $OUTPUT_DIR && echo "Ok." || echo "FAILED!"
-    fi
-    
-    
-    
-    RECIPE_LIST=`ls $RECIPE_DIR/*$RECIPE_SUFFIX`
-    for recipe in $RECIPE_LIST; do
-       lib=$OUTPUT_DIR/`basename $recipe $RECIPE_SUFFIX`$LIB_SUFFIX
-       echo "Building $lib:"
-       rm -f $lib
-       for item in `cat $recipe`; do
-           if ! echo $item | egrep -q " *#"; then
-               echo "appending $item."
-               cat $item >> $lib || (echo "Error! could not find:$item")
-           fi
-        done   
-           cat $ENDBLOCK >> $lib
-    done
-}
-    
-
-case $1 in
-    clean)
-       echo "Clean!"
-       clean
-    ;;
-    makeorg)
-       echo "Make org!"
-       make_org
-    ;;
-    lib)
-       echo "Build Lib!"
-       genlib
-    ;;
-    *)
-       clean
-       make_org
-       genlib
-    ;;
-esac
-
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..8a56f91120cdb14d0697c6d95f1326721c88b313
--- /dev/null
@@ -0,0 +1 @@
+../common/buildlib.sh
\ No newline at end of file