[postgis-tickets] r16468 - Fix sed replace that injects UTC date and SVN revision number

Regina Obe lr at pcorp.us
Sat Mar 17 09:59:31 PDT 2018


Author: robe
Date: 2018-03-17 21:59:30 -0700 (Sat, 17 Mar 2018)
New Revision: 16468

Modified:
   trunk/ci/debbie/postgis_release_docs.sh
Log:
Fix sed replace that injects UTC date and SVN revision number
Change to just build BR and DE for now
References #4047


Modified: trunk/ci/debbie/postgis_release_docs.sh
===================================================================
--- trunk/ci/debbie/postgis_release_docs.sh	2018-03-18 02:50:10 UTC (rev 16467)
+++ trunk/ci/debbie/postgis_release_docs.sh	2018-03-18 04:59:30 UTC (rev 16468)
@@ -48,9 +48,13 @@
 echo "Micro: $POSTGIS_MICRO_VERSION"
 #inject a development time stamp if we are in development branch
 if [[ "$POSTGIS_MICRO_VERSION" == *"dev"* ]]; then
-  mv postgis.xml postgis.xml.orig
+  #mv postgis.xml postgis.xml.orig
   export GIT_TIMESTAMP=`git log -1 --pretty=format:%ct`
-  sed -e "s:</title>:</title><subtitle><subscript>REV: ${VREV} DEV TIMESTAMP (<emphasis>${GIT_TIMESTAMP}</emphasis>)</subscript></subtitle>:" postgis.xml.orig > postgis.xml
+  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>"
+  sed -i 's,'"$part_old"','"$part_new"',' postgis.xml
 fi
 
 make pdf
@@ -60,14 +64,13 @@
 make epub
 make -e chunked-html 2>&1 | tee -a doc-errors.log
 
-#if [[ "$reference" == *"trunk"* ]]; then  #only do this for trunk because only trunk follows transifex
-	#make update-po
-  # make -C po/it_IT/ local-html
-  # make -C po/pt_BR/ local-html
-  # make -C po/ja/ local-html
-  # make -C po/de/ local-html
-  # make -C po/pt_BR/ local-html
-  # make -C po/ko_KR/ local-html
+if [[ "$reference" == *"trunk"* ]]; then  #only do this for trunk because only trunk follows transifex
+  #make update-po
+  #make -C po/it_IT/ local-html
+  make -C po/pt_BR/ local-html
+  #make -C po/ja/ local-html
+  make -C po/de/ local-html
+  #make -C po/ko_KR/ local-html
   #make pdf-localized
 #fi
 
@@ -93,4 +96,3 @@
   mv /var/www/postgis_stuff/postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.pdf /var/www/postgis_stuff/postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.pdf
   mv /var/www/postgis_stuff/postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.epub /var/www/postgis_stuff/postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.epub
 fi
-



More information about the postgis-tickets mailing list