diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/make_css | 5 | ||||
-rwxr-xr-x | bin/update-schema | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bin/make_css b/bin/make_css index d663597cd..7c7a5290d 100755 --- a/bin/make_css +++ b/bin/make_css @@ -35,6 +35,8 @@ GetOptions( 'style|t=s' => sub { die "Unknown style\n" unless $_[1] =~ /nested|expanded|compact|compressed/; $style = $_[1]; }, 'verbose' => \my $verbose, 'watch' => \my $watch, + 'script=s'=> \my $watch_script, + 'script-param=s'=> \my $watch_script_param, 'help|?' => \my $help, ) or pod2usage(2); pod2usage(1) if $help; @@ -93,6 +95,7 @@ while ( my @events = $watcher->wait_for_events() ) { } } } + system($watch_script, $watch_script_param) if $watch_script; } # Given a SCSS file, compile it and generate a .map file, @@ -150,6 +153,8 @@ make_css [options] [dirs ...] Options: --verbose display more information --watch wait for file updates and compile automatically + --script script to run after recompilation in watch mode + --script-param param to pass to --script when executing --style, -t CSS output style (one of nested, expanded, compact, compressed) --help this help message diff --git a/bin/update-schema b/bin/update-schema index 82632faa6..32c00ff5e 100755 --- a/bin/update-schema +++ b/bin/update-schema @@ -195,6 +195,7 @@ else { # (assuming schema change files are never half-applied, which should be the case) sub get_db_version { return 'EMPTY' if ! table_exists('problem'); + return '0053' if table_exists('report_extra_fields'); return '0052' if table_exists('translation'); return '0051' if column_exists('contacts', 'state'); return '0050' if table_exists('defect_types'); |