Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-10-30 20:55:31 +0300
committerbubnikv <bubnikv@gmail.com>2017-10-30 20:55:31 +0300
commit337f6c5808133df1c32ee6b7cb4f3a9047a97d4c (patch)
tree69ddb24d409ac55766ee8faea688a25a69d3c5a4 /utils
parentd564fc95df8209145422022cfcd757640b3c7111 (diff)
Deleted the config-bundle-to-config.pl tool, it will be replaced
with direct loading of a config bundle as a config file the same way it has been done for the config from a G-code.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/config-bundle-to-config.pl58
1 files changed, 0 insertions, 58 deletions
diff --git a/utils/config-bundle-to-config.pl b/utils/config-bundle-to-config.pl
deleted file mode 100755
index e1d7f6143..000000000
--- a/utils/config-bundle-to-config.pl
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/perl
-# This script extracts a full active config from a config bundle.
-# (Often users reporting issues don't attach plain configs, but
-# bundles...)
-
-use strict;
-use warnings;
-
-BEGIN {
- use FindBin;
- use lib "$FindBin::Bin/../lib";
- use local::lib "$FindBin::Bin/../local-lib";
-}
-
-use Getopt::Long qw(:config no_auto_abbrev);
-use Slic3r;
-use Slic3r::Test;
-$|++;
-
-my %opt = ();
-{
- my %options = (
- 'help' => sub { usage() },
- 'output=s' => \$opt{output},
- );
- GetOptions(%options) or usage(1);
- $ARGV[0] or usage(1);
-}
-
-($ARGV[0] && $opt{output}) or usage(1);
-
-{
- my $bundle_ini = Slic3r::Config->read_ini($ARGV[0])
- or die "Failed to read $ARGV[0]\n";
-
- my $config_ini = { _ => {} };
- foreach my $section (qw(print filament printer)) {
- my $preset_name = $bundle_ini->{presets}{$section};
- $preset_name =~ s/\.ini$//;
- my $preset = $bundle_ini->{"$section:$preset_name"}
- or die "Failed to find preset $preset_name in bundle\n";
- $config_ini->{_}{$_} = $preset->{$_} for keys %$preset;
- }
-
- Slic3r::Config->write_ini($opt{output}, $config_ini);
-}
-
-
-sub usage {
- my ($exit_code) = @_;
-
- print <<"EOF";
-Usage: config-bundle-to-config.pl --output config.ini bundle.ini
-EOF
- exit ($exit_code || 0);
-}
-
-__END__