/usr/bin/ebwxshell is in eekboek-gui 2.02.05+dfsg-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | #!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
# ebwxshell -- Main script for EekBoek GUI shell
# Author : Johan Vromans
# Created On : Fri Dec 18 21:54:24 2009
# Last Modified By: Johan Vromans
# Last Modified On: Sat Aug 4 21:29:18 2012
# Update Count : 113
# Status : Unknown, Use with caution!
use strict;
use utf8;
# use lib qw(EekBoekLibrary);
package main;
use strict;
use warnings;
use File::Spec;
use File::Basename;
use Wx qw[
wxDefaultPosition
wxICON_ERROR
wxICON_EXCLAMATION
wxICON_INFORMATION
wxOK
];
# If we get here, we have Wx :)
use FindBin;
our $bin = $FindBin::Bin;
# Common case when run from unpacked dist.
my $lib = File::Spec->catfile( dirname($bin), "lib" );
if ( -s File::Spec->catfile( $lib, "EekBoek.pm" ) ) {
# Need abs paths since we're going to chdir later.
unshift( @INC, File::Spec->rel2abs($lib) );
my $sep = $ENV{PATH} =~ m?;??q:;::q;:;;;; # just for fun
$ENV{PATH} = File::Spec->rel2abs($lib) . $sep . $ENV{PATH};
}
check_install( "EekBoek", "EekBoek.pm", "EB.pm", "EB/res/schema/eekboek.sql" );
require EekBoek;
check_version( "EekBoek", $EekBoek::VERSION, "2.01.00" );
check_install( "De EekBoek WxShell", "EB/Wx/Shell/Main.pm", "EB/Wx/IniWiz.pm" );
# Some more version checking. Wx 0.74 is somewhat arbitrary.
check_version( "Wx", $Wx::VERSION, "0.74" );
# Versions 0.95 and 0.96 have issues with wxHTML rendering.
# Workaround courtesy of Mark Dootson.
if ( ( $Wx::VERSION =~ /^0[.,]9[56]$/ )
&&
( not exists($ENV{PAR_0}) )
&&
!$PerlApp::VERSION
&&
!$Cava::Packager::PACKAGED
) {
no warnings;
*Wx::load_dll = sub {
use warnings;
return if $^O =~ /^darwin/i;
Wx::_load_dll( @_ );
};
}
# We currently support wxWidgets 2.8 and 2.9.
check_version( "wxWidgets", $Wx::wxVERSION, "2.008" );
$ENV{LANG} ||= "";
unless ( $ENV{LANG} =~ /^nl/i ) {
require POSIX;
for ( qw( nl_NL nl_NL.utf8 nl_NL.utf-8 nl_NL.UTF8 nl_NL.UTF-8) ) {
if ( POSIX::setlocale( POSIX::LC_ALL(), $_ ) ) {
$ENV{LANG} = $_;
warn("WAARSCHUWING: Uw taalinstelling is niet Nederlands en wordt genegeerd.\nEekBoek gebruikt nu $_.\n");
last;
}
}
}
require EB::Wx::Shell::Main;
EB::Wx::Shell::Main->run;
################ Subroutines ################
sub findfile {
my ( $file ) = @_;
return if $Cava::Packager::PACKAGED;
foreach ( @INC ) {
my $f = File::Spec->catfile( $_, $file );
return $f if -s $f;
}
return;
}
sub check_install {
# Trust packager.
return 1 if $Cava::Packager::PACKAGED;
my ( $what, @checks ) = @_;
foreach ( @checks ) {
next if findfile( $_ );
error( <<END_MSG, "Installatiefout" );
$what is niet geïnstalleerd, of kon niet worden gevonden.
Raadplaag uw systeembeheerder.
END_MSG
return;
}
}
sub check_version {
my ( $what, $version, $required ) = @_;
$version =~ s/,/./g;
$version =~ s/^(\d+\.\d+\.\d+).*/$1/;
return if $version ge $required;
error( <<END_MSG, "Ontoereikende $what versie" );
De geïnstalleerde versie van $what is niet toereikend.
Versie $version is geïnstalleerd terwijl versie $required of later
is vereist.
Raadplaag uw systeembeheerder.
END_MSG
}
################ Messengers ################
sub _msg {
my ( $msg, $caption, $style ) = @_;
$style |= wxOK;
my $d = Wx::MessageDialog->new ( undef,
$msg,
$caption,
$style, wxDefaultPosition );
$d->ShowModal;
$d->Destroy;
}
sub info {
push( @_, wxICON_INFORMATION );
goto &_msg;
}
sub error {
push( @_, wxICON_ERROR );
&_msg;
exit(1);
}
sub warning {
push( @_, wxICON_EXCLAMATION );
goto &_msg;
}
1;
=head1 NAME
EekBoek - Bookkeeping software for small and medium-size businesses
=head1 SYNOPSIS
ebgui
EekBoek is a bookkeeping package for small and medium-size businesses.
Unlike other accounting software, EekBoek has both a command-line
interface (CLI) and a graphical user-interface (GUI). Furthermore, it
has a complete Perl API to create your own custom applications.
EekBoek is designed for the Dutch/European market and currently
available in Dutch only. An English translation is in the works (help
appreciated).
=head1 DESCRIPTION
For a description how to use the program, see L<http://www.eekboek.nl/docs/index.html>.
=head1 BUGS AND PROBLEMS
Please use the eekboek-users mailing list at SourceForge.
=head1 AUTHOR AND CREDITS
Johan Vromans (jvromans@squirrel.nl) wrote this package.
Web site: L<http://www.eekboek.nl>.
=head1 COPYRIGHT AND DISCLAIMER
This program is Copyright 2005-2010 by Squirrel Consultancy. All
rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of either: a) the GNU General Public License as
published by the Free Software Foundation; either version 1, or (at
your option) any later version, or b) the "Artistic License" which
comes with Perl.
This program 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 either the
GNU General Public License or the Artistic License for more details.
=cut
|