seeddms-code/Makefile

66 lines
2.5 KiB
Makefile
Raw Normal View History

2018-11-16 11:25:16 +00:00
VERSION=$(shell php -r 'include("inc/inc.Version.php"); $$v=new SeedDMS_Version(); echo $$v->version();')
2020-10-21 07:36:43 +00:00
SRC=CHANGELOG inc conf utils index.php .htaccess languages op out controllers doc TODO LICENSE webdav install restapi pdfviewer
2021-05-12 09:39:30 +00:00
VIEWS ?= bootstrap bootstrap4
2020-10-21 07:36:43 +00:00
NODISTFILES=utils/importmail.php utils/seedddms-importmail utils/remote-email-upload utils/remote-upload utils/da-bv-reminder.php utils/seeddms-da-bv-reminder .svn .gitignore
PHPDOC=~/Downloads/phpDocumentor.phar
dist:
mkdir -p tmp/seeddms-$(VERSION)
cp -a $(SRC) tmp/seeddms-$(VERSION)
2020-10-21 07:36:43 +00:00
mkdir -p tmp/seeddms-$(VERSION)/views
mkdir -p tmp/seeddms-$(VERSION)/styles
for view in $(VIEWS) ; do \
if [ -d "views/$$view" ] ; then \
cp -a views/$$view tmp/seeddms-$(VERSION)/views ; \
fi ; \
if [ -d "styles/$$view" ] ; then \
cp -a styles/$$view tmp/seeddms-$(VERSION)/styles ; \
fi ; \
done
(cd tmp/seeddms-$(VERSION); rm -rf $(NODISTFILES); mv conf conf.template)
2020-10-21 07:36:43 +00:00
(cd tmp; tar --exclude=.svn --exclude=.gitignore -czvf ../seeddms-$(VERSION).tar.gz seeddms-$(VERSION))
rm -rf tmp
quickstart:
vendor/bin/phing -Dversion=$(VERSION) package
pear:
(cd SeedDMS_Core/; pear package)
(cd SeedDMS_Lucene/; pear package)
(cd SeedDMS_Preview/; pear package)
2015-08-10 19:39:40 +00:00
(cd SeedDMS_SQLiteFTS/; pear package)
webdav:
mkdir -p tmp/seeddms-webdav-$(VERSION)
cp webdav/* tmp/seeddms-webdav-$(VERSION)
(cd tmp; tar --exclude=.svn -czvf ../seeddms-webdav-$(VERSION).tar.gz seeddms-webdav-$(VERSION))
rm -rf tmp
2013-05-29 16:16:38 +00:00
webapp:
mkdir -p tmp/seeddms-webapp-$(VERSION)
cp -a restapi webapp tmp/seeddms-webapp-$(VERSION)
(cd tmp; tar --exclude=.svn -czvf ../seeddms-webapp-$(VERSION).tar.gz seeddms-webapp-$(VERSION))
rm -rf tmp
2018-03-23 16:45:32 +00:00
repository:
mkdir -p tmp/seeddms-repository-$(VERSION)
cp -a repository/www repository/utils repository/doc tmp/seeddms-repository-$(VERSION)
2019-07-10 17:31:33 +00:00
rm -f tmp/seeddms-repository/utils/update-repository.log
2018-03-23 16:45:32 +00:00
mkdir -p tmp/seeddms-repository-$(VERSION)/files
mkdir -p tmp/seeddms-repository-$(VERSION)/accounts
cp -a repository/files/.htaccess tmp/seeddms-repository-$(VERSION)/files
cp -a repository/accounts/.htaccess tmp/seeddms-repository-$(VERSION)/accounts
2019-07-10 17:31:33 +00:00
cp inc/inc.ClassExtensionMgr.php tmp/seeddms-repository-$(VERSION)/utils
2018-03-23 16:45:32 +00:00
(cd tmp; tar --exclude=.svn -czvf ../seeddms-repository-$(VERSION).tar.gz seeddms-repository-$(VERSION))
rm -rf tmp
doc:
$(PHPDOC) -d SeedDMS_Core --ignore 'getusers.php,getfoldertree.php,config.php,reverselookup.php' --force -t html
2015-06-24 10:41:26 +00:00
apidoc:
2016-09-23 10:47:02 +00:00
apigen generate -s SeedDMS_Core --exclude tests -d html
2015-06-24 10:41:26 +00:00
.PHONY: doc webdav webapp repository