pwd.cpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002 *                                                                             *
00003 *  Name   : pwd                                                               *
00004 *  Author : Chris Koeritz                                                     *
00005 *                                                                             *
00006 *  Purpose:                                                                   *
00007 *                                                                             *
00008 *    Supplies the support of the print working directory program (pwd).       *
00009 *  This is needed for our build system, which uses MSYS on windows.  MSYS     *
00010 *  doesn't currently support pwd or a few other apps.                         *
00011 *                                                                             *
00012 *******************************************************************************
00013 * Copyright (c) 2006-$now By Author.  This program is free software; you can  *
00014 * redistribute it and/or modify it under the terms of the GNU General Public  *
00015 * License as published by the Free Software Foundation; either version 2 of   *
00016 * the License or (at your option) any later version.  This is online at:      *
00017 *     http://www.fsf.org/copyleft/gpl.html                                    *
00018 * Please send any updates to: fred@gruntose.com                               *
00019 \*****************************************************************************/
00020 
00021 #include <data_struct/static_memory_gremlin.h>
00022 
00023 #include <stdio.h>
00024 
00025 HOOPLE_STARTUP_CODE;
00026 
00027 int main(int formal(argc), char *formal(argv)[])
00028 {
00029   istring curr_dir = portable::current_directory();
00030   curr_dir.replace_all('\\', '/');
00031   printf("%s\n", curr_dir.s());
00032   return 0;
00033 }
00034 
00035 #ifdef __BUILD_STATIC_APPLICATION__
00036   // static dependencies found by buildor_gen_deps.sh:
00037   #include <basis/array.cpp>
00038   #include <basis/byte_array.cpp>
00039   #include <basis/callstack_tracker.cpp>
00040   #include <basis/chaos.cpp>
00041   #include <basis/convert_utf.cpp>
00042   #include <basis/definitions.cpp>
00043   #include <basis/earth_time.cpp>
00044   #include <basis/guards.cpp>
00045   #include <basis/istring.cpp>
00046   #include <basis/log_base.cpp>
00047   #include <basis/memory_checker.cpp>
00048   #include <basis/mutex.cpp>
00049   #include <basis/object_base.cpp>
00050   #include <basis/outcome.cpp>
00051   #include <basis/packable.cpp>
00052   #include <basis/portable.cpp>
00053   #include <basis/sequence.cpp>
00054   #include <basis/set.cpp>
00055   #include <basis/utility.cpp>
00056   #include <basis/version_record.cpp>
00057   #include <data_struct/amorph.cpp>
00058   #include <data_struct/bit_vector.cpp>
00059   #include <data_struct/byte_hasher.cpp>
00060   #include <data_struct/configurator.cpp>
00061   #include <data_struct/hash_table.cpp>
00062   #include <data_struct/pointer_hash.cpp>
00063   #include <data_struct/stack.cpp>
00064   #include <data_struct/static_memory_gremlin.cpp>
00065   #include <data_struct/string_hash.cpp>
00066   #include <data_struct/string_hasher.cpp>
00067   #include <data_struct/string_table.cpp>
00068   #include <data_struct/symbol_table.cpp>
00069   #include <data_struct/table_configurator.cpp>
00070   #include <loggers/console_logger.cpp>
00071   #include <loggers/file_logger.cpp>
00072   #include <loggers/locked_logger.cpp>
00073   #include <loggers/null_logger.cpp>
00074   #include <loggers/program_wide_logger.cpp>
00075   #include <opsystem/byte_filer.cpp>
00076   #include <opsystem/command_line.cpp>
00077   #include <opsystem/critical_events.cpp>
00078   #include <opsystem/directory.cpp>
00079   #include <opsystem/filename.cpp>
00080   #include <opsystem/ini_config.cpp>
00081   #include <opsystem/ini_parser.cpp>
00082   #include <opsystem/path_configuration.cpp>
00083   #include <opsystem/rendezvous.cpp>
00084   #include <textual/byte_format.cpp>
00085   #include <textual/parser_bits.cpp>
00086   #include <textual/string_manipulation.cpp>
00087   #include <textual/tokenizer.cpp>
00088 #endif // __BUILD_STATIC_APPLICATION__
00089 

Generated on Fri Nov 28 04:28:51 2008 for HOOPLE Libraries by  doxygen 1.5.1