Question
- TWiki version: 20021230beta
- Perl version: 5.004
- Web server & version: Apache
- Server OS: SunOS
- Web browser & version: Netscape
- Client OS: WinNT
There is a topic
ManagingWebs which allows to create new webs from a template Web (here: _default).
If you have Web*.txt files without Web*.txt,v files the copy process fails.
If i comment out the lines #232 til #238 (copying *,v files) in bin/manage the thing works.
This solution is only a hack to get it working. There should be a check for existence before the copy. Due my knowledge in Perl programming is very low - how to fix that in a proper way ?
Remark: bin/manage out of the release 20030201 has the same problem.
Remark #2: This is
not an 1st April joke.
--
PetricFrank - 01 Apr 2003
Answer
Do this:
*** ../../manage Sat Jan 4 18:25:47 2003
--- ./manage Tue Apr 1 23:55:42 2003
***************
*** 231,241 ****
# FIXME: Hack, no support for RCS subdirectory
$from .= ",v";
$to .= ",v";
! unless( copy( $from, $to ) ) {
! return( "Copy file ( $from, $to ) failed, error: $!" );
}
- umask( 002 );
- chmod( 0644, $to );
# FIXME: Copy also attachments if present
--- 231,243 ----
# FIXME: Hack, no support for RCS subdirectory
$from .= ",v";
$to .= ",v";
! if( -e $from ) {
! unless( copy( $from, $to ) ) {
! return( "Copy file ( $from, $to ) failed, error: $!" );
! }
! umask( 002 );
! chmod( 0644, $to );
}
# FIXME: Copy also attachments if present
Is in
TWikiAlphaRelease
--
PeterThoeny - 02 Apr 2003