Added command completion targets to 'show' command.
[yasql.git] / install.pl
blob9cc17e1c04a5b72b3b9f75be4a8e386ebf79ca61
1 #! /usr/bin/env perl
3 use strict;
5 my $installpath = shift;
6 my $bindir = shift;
7 my $mandir = shift;
8 my $sysconfdir = shift;
10 print "Installing yasql to $bindir/yasql\n";
11 system("$installpath -m 755 yasql $bindir/yasql");
13 unless(-e "$sysconfdir/yasql.conf") {
14 print "Installing yasql.conf to $sysconfdir/yasql.conf\n";
15 system("$installpath -m 644 yasql.conf $sysconfdir/yasql.conf");
16 } else {
17 print "$sysconfdir/yasql.conf exists, skipping config file installation.\n";
18 print "Please read 'man yasql' for info on any new configuration "
19 ."directives\n";
22 print "Installing yasql.1 man page to $mandir/man1/yasql.1\n";
23 system("mkdir -p $mandir/man1");
24 system("$installpath -m 644 yasql.1 $mandir/man1/yasql.1");
26 print "Installation successfull\n";