summaryrefslogtreecommitdiff
path: root/rsc
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
parent042ecaedd51580a32bc4bc5f6d042783c17d68eb (diff)
#94297# implement dependency file
Diffstat (limited to 'rsc')
-rw-r--r--rsc/inc/rscrsc.hxx6
-rw-r--r--rsc/source/rsc/rsc.cxx20
2 files changed, 22 insertions, 4 deletions
diff --git a/rsc/inc/rscrsc.hxx b/rsc/inc/rscrsc.hxx
index 44e92c37e14d..e1f1ba18443e 100644
--- a/rsc/inc/rscrsc.hxx
+++ b/rsc/inc/rscrsc.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rscrsc.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: pl $ $Date: 2001-11-05 14:44:05 $
+ * last change: $Author: pl $ $Date: 2001-11-06 14:02:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -104,6 +104,8 @@ public:
ByteString aOutputCxx; // Name der Cxx-Ausgabedatei
ByteString aOutputHxx; // Name der Hxx-Ausgabedatei
+ ByteString aTouchFile; // create this file when done in rsc2
+
struct OutputFile
{
LanguageType nLangTypeId; // Globale Sprachtyp
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() );
+ }
}
/*************************************************************************