From: Torbjorn T. <et...@us...> - 2005-09-01 08:52:37
|
Update of /cvsroot/jungerl/jungerl/lib/erlmerge In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25414/erlmerge Added Files: Makefile Makefile.top README vsn.mk Log Message: Adding erlmerge --- NEW FILE: README --- For developers (as of 14 Apr 2005) ---------------------------------- Install it as: make make install (as root if 'erl' is installed as root) This will create a directory and a DB: ..../erlmerge_DB/erlmerge.dets The DB will be filled with info about the existing apps. List them with the command: erlmerge search erlmerge search mnesia Check the 'Installed' info, it should be 'true' Now sync the DB with the latest stuff from trapexit.org: erlmerge sync (again as root if necessary) This will store the sync info in: ..../erlmerge_DB/sync.erlmerge List the DB again and look for 'eldap' and 'eradius' They should not be installed. Now, to install an application do as in this example: erlmerge -i esmb or for a dryrun: erlmerge -p -i esmb The '-i' (or 'install') switch will retrieve the application and all its dependencies, unpack them and compile them under your $(ERLANG)/lib directory. So, for example, the application esmb may end up as a directory: /usr/local/lib/erlang/lib/esmb-1.0/ Which will make it available when you start your Erlang node/shell. --- NEW FILE: Makefile.top --- include vsn.mk include config/include.mk APPLICATION=erlmerge ERLMERGE=$(INSTALLPREFIX)/bin/$(APPLICATION) ERL_LIB_DIR=$(ERLDIR)/lib VERSION = $(ERLMERGE_VSN) TARGETDIR=$(INSTALLPREFIX)/lib/$(APPLICATION)-$(VERSION) all: script (cd lib; $(MAKE) $@) script: bin/erlmerge @(cd bin; \ cp ../config/erlmerge.sh erlmerge; \ echo 'ERL_LIB_DIR='$(ERL_LIB_DIR) >> erlmerge; \ echo 'export ERL_LIB_DIR' >> erlmerge; \ echo "ERL="$(ERL) >> erlmerge; \ echo '${ERL} -noshell -pa' $(TARGETDIR)/ebin '-s erlmerge run' >> erlmerge; \ echo 'if [ "$${EM_SUICIDE}" = "y" ]; then rm -f `which erlmerge`; fi' >> erlmerge) bin/erlmerge: config/erlmerge.sh clean: (cd lib; $(MAKE) $@) install: -rm $(INSTALLPREFIX)/support -rm -rf $(INSTALLPREFIX)/erlmerge_DB install -d $(TARGETDIR)/priv install -d $(TARGETDIR)/ebin install -d $(TARGETDIR)/src install -d $(TARGETDIR)/include install -d $(INSTALLPREFIX)/erlmerge_DB install -d $(INSTALLPREFIX)/erlmerge_DB/distfiles ln -s $(INSTALLPREFIX)/erlmerge_DB $(INSTALLPREFIX)/support install config/include.mk $(INSTALLPREFIX)/erlmerge_DB install lib/src/*.erl $(TARGETDIR)/src install lib/ebin/*.beam $(TARGETDIR)/ebin install -d `dirname $(ERLMERGE)` install ./bin/erlmerge $(ERLMERGE) chmod 755 $(ERLMERGE) ln -s $(ERLMERGE) ${ERL}merge $(ERLMERGE) setup --- NEW FILE: Makefile --- all: conf $(MAKE) -f Makefile.top clean: $(MAKE) -f Makefile.top clean conf: (cd config; $(MAKE)) conf_clean: (cd config; $(MAKE) clean) install: $(MAKE) -f Makefile.top install release: clean appfile sh ../../support/create_release.sh appfile: (cd src;$(MAKE) ../ebin/erlmerge.app) --- NEW FILE: vsn.mk --- ERLMERGE_VSN=0.4 |