~ubuntu-branches/ubuntu/trusty/fluxbox/trusty-proposed

« back to all changes in this revision

Viewing changes to src/main.cc

  • Committer: Package Import Robot
  • Author(s): Paul Tagliamonte
  • Date: 2010-08-12 21:16:02 UTC
  • mfrom: (0.1.1) (1.1.10)
  • Revision ID: package-import@ubuntu.com-20100812211602-3tsmzl9in5nmwz7z
Tags: 1.1.1+git20100807.0cc08f9-1
* debian/ dir has been cleaned out, complete repackage
  of most files.
* pulled new archive from git.fluxbox.org HEAD, saved as
  tar.gz.
* Added in fluxbox.* files from the old dfsg tree.
* Added in system.fluxbox-menu file from the old dfsg tree
* Added the source/format file to bump package source
  version from 1.0 to 3.0 (quilt). 
* Changed rules file to match the old dfsg setup so that
  fluxbox behaves nicely.
* Removed entries from copyright that no longer apply.
* Added theme based on Denis Brand ( naran )'s old theme.
* Added a background I whipped up.
* Changed compile flags to point to debian theme by default
* Adding a patch to have fluxbox use x-terminal-emulator
  over xterm. Closes: #591694 (LP: #580485)
* Adding a patch to allow titlebar-window dragging.
* Changed the flags in rules to pull from a script. This script
  lets us un-hardcode what theme is default. Be sure there
  is a theme pack!
* Added comments to my patches.
* Removing debian/docs, empty file.
* Fixing fluxbox.desktop to remove all the warnings from
  desktop-file-validate
* Fixing libtool issue by running an update before
  configure in the rules script.
* Added a compile flag script to auto-detect what platform
  we are running on, and apply the correct theme. This
  should solve Ubuntnu issues later on.
* adding in a get-orig-source rule
* fixing the upstream version number to pinpoint
  the commit ( thanks, lfaraone ).
* adding a rule for get-orig-source. ( thanks again,
  lfaraone ).
* Updated rules to actually allow us to do a build from it
* Removed Denis from the uploaders ( as per an email
  conversation )
* Removing madduck from the uploaders ( thanks for asking,
  lfaraone. ). Thanks for your hard work, madduck.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    _FB_USES_NLS;
73
73
    ostr<<_FB_CONSOLETEXT(Common, FluxboxVersion, "Fluxbox version", "Fluxbox version heading")<<": "<<__fluxbox_version<<endl;
74
74
 
75
 
    if (strlen(svnversion()) > 0)
76
 
        ostr << _FB_CONSOLETEXT(Common, SvnRevision, "GIT Revision", "Revision number in GIT repositary") << ": " << svnversion() << endl;
 
75
    if (strlen(gitrevision()) > 0)
 
76
        ostr << _FB_CONSOLETEXT(Common, SvnRevision, "GIT Revision", "Revision number in GIT repositary") << ": " << gitrevision() << endl;
77
77
#if defined(__DATE__) && defined(__TIME__)
78
78
    ostr<<_FB_CONSOLETEXT(Common, Compiled, "Compiled", "Time fluxbox was compiled")<<": "<<__DATE__<<" "<<__TIME__<<endl;
79
79
#endif
191
191
    int i;
192
192
    for (i = 1; i < argc; ++i) {
193
193
        string arg(argv[i]);
194
 
        if (arg == "-rc") {
 
194
        if (arg == "-rc" || arg == "--rc") {
195
195
            // look for alternative rc file to use
196
196
 
197
197
            if ((++i) >= argc) {
201
201
            }
202
202
 
203
203
            rc_file = argv[i];
204
 
        } else if (arg == "-display") {
 
204
        } else if (arg == "-display" || arg == "--display") {
205
205
            // check for -display option... to run on a display other than the one
206
206
            // set by the environment variable DISPLAY
207
207
 
220
220
                              "")<<endl;
221
221
                perror("putenv()");
222
222
            }
223
 
        } else if (arg == "-version" || arg == "-v") {
 
223
        } else if (arg == "-version" || arg == "-v" || arg == "--version") {
224
224
            // print current version string
225
225
            cout << "Fluxbox " << __fluxbox_version << " : (c) 2001-2008 Fluxbox Team " << endl << endl;
226
226
            exit(EXIT_SUCCESS);
227
 
        } else if (arg == "-log") {
 
227
        } else if (arg == "-log" || arg == "--log") {
228
228
            if (++i >= argc) {
229
229
                cerr<<_FB_CONSOLETEXT(main, LOGRequiresArg, "error: '-log' needs an argument", "")<<endl;
230
230
                exit(EXIT_FAILURE);
231
231
            }
232
232
            log_filename = argv[i];
233
 
        } else if (arg == "-sync") {
 
233
        } else if (arg == "-sync" || arg == "--sync") {
234
234
             xsync = true;
235
 
        } else if (arg == "-help" || arg == "-h") {
 
235
        } else if (arg == "-help" || arg == "-h" || arg == "--help") {
236
236
            // print program usage and command line options
237
237
            printf(_FB_CONSOLETEXT(main, Usage,
238
238
                           "Fluxbox %s : (c) %s Henrik Kinnunen\n"
250
250
                           "Main usage string. Please lay it out nicely. There is one %s that is given the version").c_str(),
251
251
                   __fluxbox_version, "2001-2008");
252
252
            exit(EXIT_SUCCESS);
253
 
        } else if (arg == "-info" || arg == "-i") {
 
253
        } else if (arg == "-info" || arg == "-i" || arg == "--info") {
254
254
            showInfo(cout);
255
255
            exit(EXIT_SUCCESS);
256
 
        } else if (arg == "-list-commands") {
 
256
        } else if (arg == "-list-commands" || arg == "--list-commands") {
257
257
            FbTk::CommandParser<void>::CreatorMap cmap = FbTk::CommandParser<void>::instance().creatorMap();
258
258
            FbTk::CommandParser<void>::CreatorMap::const_iterator it = cmap.begin();
259
259
            const FbTk::CommandParser<void>::CreatorMap::const_iterator it_end = cmap.end();
260
260
            for (; it != it_end; ++it)
261
261
                cout << it->first << endl;
262
262
            exit(EXIT_SUCCESS);
263
 
        } else if (arg == "-verbose") {
 
263
        } else if (arg == "-verbose" || arg == "--verbose") {
264
264
            FbTk::ThemeManager::instance().setVerbose(true);
265
265
        }
266
266
    }