-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new generation script that lives in doc-base (#64)
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
cd /local/Web/sites/doc.php.net/scripts | ||
cd /local/src/phpdoc | ||
|
||
langs=`/usr/bin/php -r 'include "languages.inc"; echo implode( " ", array_keys( $LANGUAGES ) );'`; | ||
|
||
export PHPDOC_GIT_DIR=/local/src/phpdoc | ||
export SQLITE_DIR=/local/Web/sites/doc.php.net/sqlite | ||
|
||
mkdir -p ${SQLITE_DIR} | ||
|
||
echo "Generating PHP database" | ||
php -q rev.php | ||
php -q base/scripts/translation/genrevdb.php ${SQLITE_DIR}/status.sqlite.tmp ${langs} | ||
mv ${SQLITE_DIR}/status.sqlite.tmp ${SQLITE_DIR}/status.sqlite | ||
echo "... done." |