newversion.cmd
replaces the re-motion assemblies in a
given project for those from a new
version. This tool assumes that the (PhoneBook) project's
assemblies are stored in the Remotion\net-3.5\bin\Debug
subdirectory. The tool uses the unzipper 7z.exe
to
unpack a given Remotion_X.zip
file from the
Development
directory on the development server.
Unfortunately, 7z.exe
can't extract specific files from
an archive. We must extract everything into a temporary
("scratch") directory and cherry-pick the files from
the scratch\net-3.5\bin\Debug
subdirectory.
These files are copied to the specified project.
Before copying, the specified target Remotion\net-3.5\bin\Debug
subdirectory sub-directory is deleted recursively.
usage
...
This replaces all files in C:\PhoneBook-SVN\Remotion\net-3.5\bin\Debug
for the net-3.5\bin\Debug
files in the Remotion_1.13.13.0.zip
files.
Note | ||
---|---|---|
| ||
|
...
A stupid weakness is the tool's shotgun-approach to deleting files.
The recursive "delete all" semantics covers the .svn
directories,
too. This doesn't do any harm, because these directories are write-protected.
However, trying to delete the .svn
directories IS scary. A
more selective approach would be better.
...