Hi,
I have backported relevant patches from SVN-HEAD and want to
package GRASS 6.3.0RC4 (which is hopefully the last candidate).
Unfortunately (as we know), SVN does not preserve the time stamp
when downloading a file. So all files have a time stamp from 2008.
Any idea how to restore the last change as time stamp?
markus
Markus Neteler <neteler@osgeo.org> writes:
> Hi, I have backported relevant patches from SVN-HEAD and want to
> package GRASS 6.3.0RC4 (which is hopefully the last candidate).
> Unfortunately (as we know), SVN does not preserve the time stamp
> when downloading a file. So all files have a time stamp from 2008.
> Any idea how to restore the last change as time stamp?
I'm not familiar with SVN at all, but may rsync(1) be of any use
here? E. g.:
$ ls -gGl old-version/
total 2
-rw-r--r-- 1 2 Jan 8 21:34 did-change
-rw-r--r-- 1 2 Jan 8 21:34 did-not-change
$ LC_ALL=C ls -gGl new-version.from-svn/
total 2
-rw-r--r-- 1 3 Jan 8 21:36 did-change
-rw-r--r-- 1 2 Jan 8 21:36 did-not-change
$ rsync -rlt old-version/ new-version/
$ rsync -crl new-version.from-svn/ new-version/
$ ls -gGl new-version
итого 2
-rw-r--r-- 1 3 Jan 8 21:37 did-change
-rw-r--r-- 1 2 Jan 8 21:34 did-not-change
$
This way, m-time will be set either to the one of the earlier
version (if the file didn't change), or to the current time (if
it did.)
You'll need a previous version (`old-version' in the example
above) unpacked from a tarball, though.
Ivan,
I am impressed! Worked nicely.
Thanks so much,
Markus
On Jan 8, 2008 4:41 PM, Ivan Shmakov <ivan@theory.asu.ru> wrote:
>>>>> Markus Neteler <neteler@osgeo.org> writes:
> Hi, I have backported relevant patches from SVN-HEAD and want to
> package GRASS 6.3.0RC4 (which is hopefully the last candidate).
> Unfortunately (as we know), SVN does not preserve the time stamp
> when downloading a file. So all files have a time stamp from 2008.
> Any idea how to restore the last change as time stamp?
I'm not familiar with SVN at all, but may rsync(1) be of any use
here? E. g.:
$ ls -gGl old-version/
total 2
-rw-r--r-- 1 2 Jan 8 21:34 did-change
-rw-r--r-- 1 2 Jan 8 21:34 did-not-change
$ LC_ALL=C ls -gGl new-version.from-svn/
total 2
-rw-r--r-- 1 3 Jan 8 21:36 did-change
-rw-r--r-- 1 2 Jan 8 21:36 did-not-change
$ rsync -rlt old-version/ new-version/
$ rsync -crl new-version.from-svn/ new-version/
$ ls -gGl new-version
итого 2
-rw-r--r-- 1 3 Jan 8 21:37 did-change
-rw-r--r-- 1 2 Jan 8 21:34 did-not-change
$
This way, m-time will be set either to the one of the earlier
version (if the file didn't change), or to the current time (if
it did.)
You'll need a previous version (`old-version' in the example
above) unpacked from a tarball, though.
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
--
Open Source Geospatial Foundation
http://www.osgeo.org/
http://www.grassbook.org/