[postgis-tickets] [PostGIS] #3488: make_dist.sh uses non-POSIX "mv -T"

PostGIS trac at osgeo.org
Wed Mar 2 06:08:26 PST 2016


#3488: make_dist.sh uses non-POSIX "mv -T"
------------------------------------+----------------------------
  Reporter:  gdt                    |      Owner:  strk
      Type:  defect                 |     Status:  new
  Priority:  medium                 |  Milestone:  PostGIS Future
 Component:  build/upgrade/install  |    Version:  trunk
Resolution:                         |   Keywords:
------------------------------------+----------------------------

Comment (by gdt):

 Note that I have hand-separted this hunk from another.  But it's
 trivial, so hopefully that doesn't hurt.

 {{{
 Index: make_dist.sh
 ===================================================================
 --- make_dist.sh        (revision 14733)
 +++ make_dist.sh        (working copy)
 @@ -107,8 +116,10 @@
    VREV=`cat "$outdir"/postgis_svn_revision.h | awk '{print $3}'`
    version="${VMAJ}.${VMIN}.${VMIC}-r${VREV}"
    newoutdir=postgis-${version}
 -  mv -vT --backup=t "$outdir" "$newoutdir"
 -  outdir=${newoutdir}
 +  if [ "$newoutdir" != "$outdir" ]; then
 +      mv "$outdir" "$newoutdir"
 +      outdir=${newoutdir}
 +  fi
  fi

  package="postgis-$version.tar.gz"
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3488#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list