Indefero

Indefero Commit Details


Date:2012-05-11 19:25:33 (12 years 7 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:dd3474c06c36159aa09d97855a1452908df39a41
Parents: bcd515eed5d9fc3e2267ba0260a5dc7b41bed82a
Message:Add two more targets to dump and restore application backups.

Changes:

File differences

.gitignore
55
66
77
8
89
910
1011
.settings
.tx/config
attachments
backups
indefero-*.zip
src/IDF/conf/idf.php
src/IDF/conf/idf.test.php
Makefile
3737
3838
3939
40
41
42
43
40
41
42
43
44
4445
4546
4647
......
139140
140141
141142
142
143
143
144
144145
145146
146147
......
148149
149150
150151
152
153
154
155
156
157
158
159
160
161
@printf "\tpo-push - Send the all PO files to the transifex server.\n"
@printf "\tpo-pull - Get all PO files from the transifex server.\n"
@printf "\tpo-stats - Show translation statistics of all PO files.\n"
@printf "\nMisc Rules :\n";
@printf "\tdb-install - Install the database schema.\n"
@printf "\tdb-update - Update the database schema.\n"
@printf "\nRules for managing the database :\n";
@printf "\tdb-install- Install the database schema.\n"
@printf "\tdb-update- Update the database schema.\n"
@printf "\tdb-backup-foo- Create a named backup 'foo' with data from the current database.\n"
@printf "\tdb-restore-foo- Restore schema and the data from a named backup 'foo' to an empty database.\n"
#
# Internationalization rule, POT & PO file manipulation
# make develop_zipfile
#
%-zipfile:
@git archive --format=zip --prefix="indefero/" $(@:-zipfile=) \
> indefero-$(@:-zipfile=)-`git log $(@:-zipfile=) -n 1 \
@git archive --format=zip --prefix="indefero/" $* \
> indefero-$*-`git log $* -n 1 \
--pretty=format:%h`.zip
db-install:
db-update:
@cd src && php "$(PLUF_PATH)/migrate.php" --conf=IDF/conf/idf.php -a -d
db-backup-%:
@[ -e backups ] || mkdir backups
@cd src && php "$(PLUF_PATH)/migrate.php" --conf=IDF/conf/idf.php -a -b ../backups $*
@echo Files for named backup $* have been saved into backups/ directory.
db-restore-%:
@cd src && php "$(PLUF_PATH)/migrate.php" --conf=IDF/conf/idf.php -a -r ../backups $*
@echo Files for named backup $* have been restored from the backups/ directory.

Archive Download the corresponding diff file

Page rendered in 0.08187s using 13 queries.