diff --git a/README.build b/README.build new file mode 100644 index 0000000..c2f8b8e --- /dev/null +++ b/README.build @@ -0,0 +1,28 @@ +#!/bin/false +# Not a shell script! + +# Copy this file to ../m3ua.build/README +# Follow these instructions in that directory + +## Configure new build directory +mkdir -p shell/lib +ln -st shell/lib ../../$(ls -d ../sigscale_mibs.build/shell/lib/sigscale_mibs-*) + +## Make edoc available +mkdir -p ~/public_html/m3ua +ln -st ~/public_html/m3ua ../../m3ua.build/doc +ln -st ~/public_html/m3ua ../../m3ua.build/test/log +mv ~/public_html/m3ua/log ~/public_html/m3ua/test + +## Configure project +ERLANG_INSTALL_LIB_DIR=$PWD/shell/lib ERL_LIBS=$PWD/shell/lib ../m3ua/configure + +## Install in shell/lib and build a release package +ERL_LIBS=$PWD/shell/lib make install + +## Validate, verify and test +ERL_LIBS=$PWD/shell/lib make check + +## Scrub it clean +ERL_LIBS=$PWD/shell/lib make distclean; rm -rf *.boot *.rel *.script *.tar.gz Makefile config.* m3ua.rel doc ebin src include priv test stamp-h1 sys.config shell/lib/m3ua-* + diff --git a/README.maintainer b/README.maintainer index d68bd7e..b8dc154 100644 --- a/README.maintainer +++ b/README.maintainer @@ -11,8 +11,6 @@ You'll need the following GNU tools: - autoconf - automake - make - - m4 - - perl ## Porting The only files which should (theoretically) be edited for portability are: @@ -29,10 +27,11 @@ Note: ## Building 1. mkdir ../m3ua.build (create build directory) - 2. cd ../m3ua.build (change working directory for build) - 3. ../m3ua/configure (creates Makefiles) - 4. make (builds entire package) - 5. make check (run dialyzer and common_test) + 2. cp README.build ../m3ua.build/README + 3. cd ../m3ua.build (change working directory for build) + 4. ../m3ua/configure (creates Makefiles) + 5. make (builds entire package) + 6. make check (run dialyzer and common_test) ## Installing 1. sudo make install (installs embedded application in system)