summaryrefslogtreecommitdiff
path: root/rsc/source
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2001-11-06 13:02:06 +0000
committerPhilipp Lohmann <pl@openoffice.org>2001-11-06 13:02:06 +0000
commitdc4096ce885258999e185e3d04638e01d6304e40 (patch)
treeda192fff62e0d23ae70877cb6ffeb39a82f2efda /rsc/source
parent042ecaedd51580a32bc4bc5f6d042783c17d68eb (diff)
#94297# implement dependency file
Diffstat (limited to 'rsc/source')
-rw-r--r--rsc/source/rsc/rsc.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx
index f950eef19e63..93f1aa22bd5f 100644
--- a/rsc/source/rsc/rsc.cxx
+++ b/rsc/source/rsc/rsc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rsc.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: pl $ $Date: 2001-11-06 13:52:58 $
+ * last change: $Author: pl $ $Date: 2001-11-06 14:02:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -289,6 +289,10 @@ RscCmdLine::RscCmdLine( short argc, char ** argv, RscError * pEH )
{ // Name fuer .src-file
aOutputSrc = (*ppStr) + 3;
}
+ else if( !rsc_strnicmp( (*ppStr) + 1, "ft", 2 ) )
+ { // touch file
+ aTouchFile = (*ppStr) + 3;
+ }
else if( !rsc_stricmp( (*ppStr) + 1, "NoSysResTest" ) )
{ // Bitmap, Pointers, Icons nicht ueberpruefen
nCommands |= NOSYSRESTEST_FLAG;
@@ -663,6 +667,18 @@ void RscCompiler::EndCompile()
unlink( aTmpOutputSrc.GetBuffer() );// TempDatei loeschen
aTmpOutputSrc = ByteString();
}
+
+ if( pCL->aTouchFile.Len() )
+ {
+ FILE* fp = fopen( pCL->aTouchFile.GetBuffer(), "w" );
+ if( fp )
+ {
+ fprintf( fp, "Done\n" );
+ fclose( fp );
+ }
+ else
+ pTC->pEH->FatalError( ERR_OPENFILE, RscId(), pCL->aTouchFile.GetBuffer() );
+ }
}
/*************************************************************************