mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
allow to select views added to tar.gz
This commit is contained in:
parent
defa988e62
commit
693af89d9a
18
Makefile
18
Makefile
|
@ -1,8 +1,8 @@
|
|||
VERSION=$(shell php -r 'include("inc/inc.Version.php"); $$v=new SeedDMS_Version(); echo $$v->version();')
|
||||
SRC=CHANGELOG inc conf utils index.php .htaccess languages views op out controllers doc styles TODO LICENSE webdav install restapi pdfviewer
|
||||
# webapp
|
||||
SRC=CHANGELOG inc conf utils index.php .htaccess languages op out controllers doc TODO LICENSE webdav install restapi pdfviewer
|
||||
VIEWS ?= bootstrap
|
||||
|
||||
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 styles/blue styles/hc styles/clean views/blue views/hc views/clean views/pca views/tdk
|
||||
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
|
||||
|
||||
EXTENSIONS := \
|
||||
dynamic_content.tar.gz\
|
||||
|
@ -15,8 +15,18 @@ PHPDOC=~/Downloads/phpDocumentor.phar
|
|||
dist:
|
||||
mkdir -p tmp/seeddms-$(VERSION)
|
||||
cp -a $(SRC) tmp/seeddms-$(VERSION)
|
||||
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)
|
||||
(cd tmp; tar --exclude=.svn --exclude=.gitignore --exclude=views/blue --exclude=views/hc --exclude=views/clean --exclude=styles/blue --exclude=styles/hc --exclude=styles/clean -czvf ../seeddms-$(VERSION).tar.gz seeddms-$(VERSION))
|
||||
(cd tmp; tar --exclude=.svn --exclude=.gitignore -czvf ../seeddms-$(VERSION).tar.gz seeddms-$(VERSION))
|
||||
rm -rf tmp
|
||||
|
||||
pear:
|
||||
|
|
Loading…
Reference in New Issue
Block a user