Rewritten
authorRoland Häder <roland@mxchange.org>
Mon, 7 Sep 2009 22:22:59 +0000 (22:22 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 7 Sep 2009 22:22:59 +0000 (22:22 +0000)
.gitignore
Doxyfile
package.sh

index 21af8e9..e31a963 100644 (file)
@@ -8,5 +8,4 @@ db/news/*.serialized
 db/payments/*.serialized
 db/user/*.serialized
 db/user_points/*.serialized
-docs/html
 docs/warn.log
index 985d2af..1c05f5d 100644 (file)
--- a/Doxyfile
+++ b/Doxyfile
@@ -38,7 +38,7 @@ PROJECT_NUMBER         = 0.1a
 # If a relative path is entered, it will be relative to the location 
 # where doxygen was started. If left blank the current directory will be used.
 
-OUTPUT_DIRECTORY       = /var/www/htdocs/ship-simu/docs/
+OUTPUT_DIRECTORY       = /var/www/htdocs/ship-simu/trunk/docs/
 
 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 
 # 4096 sub-directories (in 2 levels) under the output directory of each output 
@@ -492,7 +492,7 @@ WARN_FORMAT            = "$file:$line: $text "
 # and error messages should be written. If left blank the output is written 
 # to stderr.
 
-WARN_LOGFILE           = /var/www/htdocs/ship-simu/docs/warn.log
+WARN_LOGFILE           = /var/www/htdocs/ship-simu/trunk/docs/warn.log
 
 #---------------------------------------------------------------------------
 # configuration options related to the input files
@@ -503,7 +503,7 @@ WARN_LOGFILE           = /var/www/htdocs/ship-simu/docs/warn.log
 # directories like "/usr/src/myproject". Separate the files or directories 
 # with spaces.
 
-INPUT                  = /var/www/htdocs/ship-simu/
+INPUT                  = /var/www/htdocs/ship-simu/trunk/index.php /var/www/htdocs/ship-simu/trunk/inc/ /var/www/htdocs/ship-simu/trunk/application/ship-simu/
 
 # This tag can be used to specify the character encoding of the source files that 
 # doxygen parses. Internally doxygen uses the UTF-8 encoding, which is also the default 
index aeb7db3..639837e 100755 (executable)
@@ -1,16 +1,14 @@
 #!/bin/sh
 
+NAME=shipsimu_dev_`date +%Y%m%d_%H%M%S`.zip
+
 sh ./clear-cache.sh
 
 echo -n "$0: Packaging... "
-zip -9 shipsimu_dev.zip docs/* Doxyfile *.php *.sh > /dev/null 2>&1
+zip -9 $NAME docs/* Doxyfile *.php *.sh > /dev/null 2>&1
 echo -n "."
-zip -9r shipsimu_dev.zip application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1
+zip -9r $NAME application/ db/ devel/ Doxyfile inc/ templates/ tests/ > /dev/null 2>&1
 echo -n "."
-zip -d shipsimu_dev.zip docs/warn.log db/*/*.serialized > /dev/null 2>&1
+zip -d $NAME docs/warn.log db/*/*.serialized > /dev/null 2>&1
 echo ". done"
-
-echo "$0: Renaming..."
-mv shipsimu_dev.zip shipsimu_dev_`date +%Y%m%d_%H%M%S`.zip
-
 echo "$0: All done."