[postgis-tickets] r16471 - variable typo

Regina Obe lr at pcorp.us
Sat Mar 17 10:16:18 PDT 2018


Author: robe
Date: 2018-03-17 22:16:18 -0700 (Sat, 17 Mar 2018)
New Revision: 16471

Modified:
   trunk/ci/debbie/postgis_release_docs.sh
Log:
variable typo

Modified: trunk/ci/debbie/postgis_release_docs.sh
===================================================================
--- trunk/ci/debbie/postgis_release_docs.sh	2018-03-18 05:12:00 UTC (rev 16470)
+++ trunk/ci/debbie/postgis_release_docs.sh	2018-03-18 05:16:18 UTC (rev 16471)
@@ -46,14 +46,14 @@
 #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 @@
 
 
 
-#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}



More information about the postgis-tickets mailing list