]> granicus.if.org Git - postgis/commitdiff
variable typo
authorRegina Obe <lr@pcorp.us>
Sun, 18 Mar 2018 05:16:18 +0000 (05:16 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 18 Mar 2018 05:16:18 +0000 (05:16 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16471 b70326c6-7e19-0410-871a-916f4a2858ee

ci/debbie/postgis_release_docs.sh

index b1a070b9f3782a21395c94f3560b1db2f66a70c2..c5d31c26782f4c10b7484df400c5bc4af551e472 100644 (file)
@@ -46,14 +46,14 @@ cd doc
 #sed -e "s:</title>:</title><subtitle><subscript>SVN Revision (<emphasis>${POSTGIS_SVN_REVISION}</emphasis>)</subscript></subtitle>:" postgis.xml.orig > postgis.xml
 
 echo "Micro: $POSTGIS_MICRO_VERSION"
+cp postgis.xml postgis.xml.orig #we for dev will inject stuff into file, so backup original
 #inject a development time stamp if we are in development branch
 if [[ "$POSTGIS_MICRO_VERSION" == *"dev"* ]]; then
-  cp postgis.xml postgis.xml.orig
   export GIT_TIMESTAMP=`git log -1 --pretty=format:%ct`
   export GIT_TIMESTAMP="`date -d @$GIT_TIMESTAMP`" #convert to UTC date
   echo "GIT_TIMESTAMP: ${GIT_TIMESTAMP}"
   export part_old="</title>"
-  export part_new="</title><subtitle><subscript>DEV (<emphasis>$GIT_TIMESTAMP r$VREV</emphasis>)</subscript></subtitle>"
+  export part_new="</title><subtitle><subscript>DEV (<emphasis>$GIT_TIMESTAMP r${VREV}</emphasis>)</subscript></subtitle>"
   sed -i 's,'"$part_old"','"$part_new"',' postgis.xml
 fi
 
@@ -81,7 +81,7 @@ tar -czf "$package" --exclude='.svn' --exclude='.git' --exclude='image_src' "$ou
 
 
 
-#mv postgis.xml.orig postgis.xml
+cp postgis.xml.orig postgis.xml
 mkdir -p /var/www/postgis_docs/manual-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}
 mkdir -p /var/www/postgis_docs/manual-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}/images
 cp -R html/*.*  /var/www/postgis_docs/manual-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}