elog for Debian
---------------

How to create a new debianized source package of elog from upstream source.

Replace $(ORIG_VERSION) with e.g. 3.0.0-1:
Steps:
1.  Create a new working folder, e.g. ~/elog_packaging and change to this folder
2.  Get and extract sources
      wget -q http://midas.psi.ch/elog/download/tar/elog-$(ORIG_VERSION).tar.gz
      tar xzf ./elog-$(ORIG_VERSION).tar.gz
3.  Rename elog folder:
      mv ./elog-3.0.0 ./elog-$(ORIG_VERSION)
    Move mxml/* into elog/src:
      mv ./mxml/* ./elog-$(ORIG_VERSION)/src
4.  Remove embedded source of other projects:
      rm -rf ./elog-$(ORIG_VERSION)/scripts/ckeditor
      rm -rf ./elog-$(ORIG_VERSION)/scripts/ckeditor.zip
      rm -rf ./elog-$(ORIG_VERSION)/scripts/jquery-1.11.1.min.js
      rm -rf ./elog-$(ORIG_VERSION)/scripts/progress/*
5.  Add and embedd original source of javascript progress bar
      wget -q https://github.com/usablica/progress.js/archive/v0.1.0.tar.gz
      tar xzf v0.1.0.tar.gz
      cp progress.js-0.1.0/README.md ./elog-$(ORIG_VERSION)/scripts/progress/
      cp progress.js-0.1.0/src/* ./elog-$(ORIG_VERSION)/scripts/progress/
6.  Pack it:
      tar czf ./$(shell date "+%Y%m%d-%H%M%S")-REPACKED-elog_$(ORIG_VERSION).orig.tar.gz -C ./ elog-$(ORIG_VERSION)

Running debian/rules get-orig-source does this repacking automatically. 

