1 |
296 |
ahitrov |
############################################################################## |
2 |
|
|
# $HeadURL$ |
3 |
|
|
# $Id$ |
4 |
|
|
############################################################################### |
5 |
|
|
# installation settings |
6 |
|
|
include ../../../../config.mk |
7 |
|
|
|
8 |
|
|
# local defines |
9 |
|
|
SOURCES = ${ROOT_DIR}/src |
10 |
|
|
CORE_SRC = ${SOURCES}/core |
11 |
|
|
PLUG_SRC = ${SOURCES}/plugins |
12 |
|
|
PROJ_SRC = ${SOURCES}/projects |
13 |
|
|
|
14 |
|
|
CORE_USR = ${ROOT_DIR}/usr/core |
15 |
|
|
PLUG_USR = ${ROOT_DIR}/usr/plugins |
16 |
|
|
PROJ_USR = ${ROOT_DIR}/usr/projects |
17 |
|
|
PROJ_TMP = ${ROOT_DIR}/tmp/projects |
18 |
|
|
PROJ_VAR = ${ROOT_DIR}/var/projects |
19 |
|
|
|
20 |
|
|
PORTSDIR = ${CORE_SRC}/ports |
21 |
|
|
LOCAL = ${ROOT_DIR}/usr/local |
22 |
|
|
PORTSWRK = ${ROOT_DIR}/var/ports |
23 |
|
|
|
24 |
|
|
.PHONY: |
25 |
|
|
project_create create \ |
26 |
|
|
project_import import \ |
27 |
|
|
|
28 |
|
|
# create new project |
29 |
|
|
create: project_create ; |
30 |
|
|
project_create: |
31 |
|
|
@if [ -z "${NAME}" ]; then \ |
32 |
|
|
echo "ERROR: NAME not defined"; \ |
33 |
|
|
echo "HINT: use 'make cmd NAME=xxx'"; \ |
34 |
|
|
exit 1; \ |
35 |
|
|
fi; |
36 |
|
|
@if [ -r "${PROJ_SRC}/promosuite/comps/i/${NAME}" ]; then \ |
37 |
|
|
else \ |
38 |
|
|
mkdir ${PROJ_SRC}/promosuite/comps/i/${NAME}; \ |
39 |
|
|
mkdir ${PROJ_SRC}/promosuite/comps/comps/${NAME}; \ |
40 |
|
|
mkdir ${PROJ_SRC}/promosuite/comps/www/${NAME}; \ |
41 |
|
|
cp ${PROJ_SRC}/promosuite/comps/www/index.html ${PROJ_SRC}/promosuite/comps/www/${NAME}/; \ |
42 |
|
|
fi; |
43 |
|
|
@echo $@ done |
44 |
|
|
|
45 |
|
|
import: project_import ; |
46 |
|
|
project_import: |
47 |
|
|
@if [ -z "${NAME}" ]; then \ |
48 |
|
|
echo "ERROR: NAME not defined"; \ |
49 |
|
|
echo "HINT: use 'make cmd NAME=xxx'"; \ |
50 |
|
|
exit 1; \ |
51 |
|
|
fi; |
52 |
|
|
@if [ -r "${PROJ_SRC}/promosuite/comps/i/${NAME}" ]; then \ |
53 |
|
|
svn add ${PROJ_SRC}/promosuite/comps/i/${NAME}; \ |
54 |
|
|
svn add ${PROJ_SRC}/promosuite/comps/comps/${NAME}; \ |
55 |
|
|
svn add ${PROJ_SRC}/promosuite/comps/www/${NAME}; \ |
56 |
|
|
fi; |
57 |
|
|
@echo $@ done |