summaryrefslogtreecommitdiff
path: root/tools/bootstrp
diff options
context:
space:
mode:
authorNils Fuhrmann <nf@openoffice.org>2001-05-07 13:16:04 +0000
committerNils Fuhrmann <nf@openoffice.org>2001-05-07 13:16:04 +0000
commit32a1e9a93990bcf9f2c9528d32cdfb4f95611bf1 (patch)
treef8880ac53e3571737c0f39badbfb5b7af81dc9dc /tools/bootstrp
parentdc90c9cea7742b1ab862abe02ec9fd9e0d7c5d9e (diff)
New: Comments in GenericInformationList
Diffstat (limited to 'tools/bootstrp')
-rw-r--r--tools/bootstrp/makefile.mk15
-rw-r--r--tools/bootstrp/sspretty.cxx91
2 files changed, 100 insertions, 6 deletions
diff --git a/tools/bootstrp/makefile.mk b/tools/bootstrp/makefile.mk
index 74914ba985e6..3cd2f743221d 100644
--- a/tools/bootstrp/makefile.mk
+++ b/tools/bootstrp/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.6 $
+# $Revision: 1.7 $
#
-# last change: $Author: nf $ $Date: 2001-04-30 14:40:17 $
+# last change: $Author: nf $ $Date: 2001-05-07 14:16:04 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -89,8 +89,6 @@ OBJFILES= \
$(OBJ)$/cppdep.obj \
$(OBJ)$/command.obj \
$(OBJ)$/prj.obj \
- $(OBJ)$/errdumm.obj \
- $(OBJ)$/errhdl.obj \
$(OBJ)$/inimgr.obj \
$(OBJ)$/revision.obj \
$(OBJ)$/shellprp.obj \
@@ -103,8 +101,6 @@ SLOFILES= \
$(SLO)$/cppdep.obj \
$(SLO)$/command.obj \
$(SLO)$/prj.obj \
- $(SLO)$/errdumm.obj \
- $(SLO)$/errhdl.obj \
$(SLO)$/inimgr.obj \
$(SLO)$/revision.obj \
$(SLO)$/shellprp.obj \
@@ -153,6 +149,13 @@ APP5TARGET= zipdep
APP5OBJS= $(OBJ)$/zipdep.obj
APP5LIBS= $(LB)$/bootstrp.lib
APP5STDLIBS=$(STATIC_LIBS)
+APP5DEPN= $(LB)$/atools.lib $(LB)$/bootstrp.lib $(OBJ)$/zipdep.obj
+
+APP6TARGET= sspretty
+APP6OBJS= $(OBJ)$/sspretty.obj
+APP6LIBS= $(LB)$/bootstrp.lib
+APP6STDLIBS=$(STATIC_LIBS)
+APP6DEPN= $(LB)$/atools.lib $(LB)$/bootstrp.lib $(OBJ)$/sspretty.obj
DEPOBJFILES = $(APP1OBJS) $(APP2OBJS) $(APP3OBJS) $(APP4OBJS) $(APP5OBJS) $(APP6OBJS)
diff --git a/tools/bootstrp/sspretty.cxx b/tools/bootstrp/sspretty.cxx
new file mode 100644
index 000000000000..e00a37a3cb9d
--- /dev/null
+++ b/tools/bootstrp/sspretty.cxx
@@ -0,0 +1,91 @@
+/*************************************************************************
+ *
+ * $RCSfile: sspretty.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: nf $ $Date: 2001-05-07 14:16:04 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "iparser.hxx"
+#include "geninfo.hxx"
+#include <stdio.h>
+
+
+/*****************************************************************************/
+#ifdef UNX
+int main( int argc, char *argv[] )
+#else
+int _cdecl main( int argc, char *argv[] )
+#endif
+/*****************************************************************************/
+{
+ if ( argc != 2 ) {
+ fprintf( stdout, "\nsspretty.exe v1.0 (c) 2001\n\n" );
+ fprintf( stdout, "Syntax: sspretty filename\n" );
+ }
+ else {
+ String aFileName( argv[ 1 ], RTL_TEXTENCODING_ASCII_US );
+ InformationParser aParser;
+ GenericInformationList *pList = aParser.Execute( aFileName );
+ if ( pList )
+ aParser.Save( aFileName, pList );
+ else {
+ fprintf( stderr, "Error reading input file!\n" );
+ return 1;
+ }
+ }
+ return 0;
+}
+