# Automatically generated commit information
# Only edit if you know what these do!
-../systemd-upstream master 265710c20 src-efaa3176a x
-../systemd-stable v229-stable c7f5a7d89 x x
-../systemd-stable v231-stable 33628598e x x
-../systemd-stable v232-stable 79a5d862a x x
-../systemd-stable v233-stable 589fa9087 x x
-../systemd-upstream v234 d6d0473dc src-782c925f7 x
-../systemd-stable v234-stable 782c925f7 x x
-../systemd-stable v235-stable b3e823e43 x x
-../systemd-upstream v236 83fefc888 src-f78a88bec x
-../systemd-stable v236-stable b3e823e43 x x
-../systemd-upstream v237 590171d1c src-6d8c71eb8 x
+../systemd-stable v229-stable c7f5a7d89 x x
+../systemd-stable v231-stable 33628598e x x
+../systemd-stable v232-stable 79a5d862a x x
+../systemd-stable v233-stable 589fa9087 x x
+../systemd-stable v234-stable 782c925f7 x x
+../systemd-stable v235-stable b3e823e43 x x
+../systemd-stable v236-stable b3e823e43 x x
+../systemd-upstream master 265710c20 src-efaa3176a x
+../systemd-upstream v234 d6d0473dc src-782c925f7 x
+../systemd-upstream v236 83fefc888 src-f78a88bec x
+../systemd-upstream v237 590171d1c src-6d8c71eb8 x
sub checkout_tree; # Checkout the given refid on the given path.
sub generate_file_list; # Find all relevant files and store them in @wanted_files
sub get_last_mutual; # Find or read the last mutual refid between this and the upstream tree.
+sub handle_sig; # Signal handler so we don't break without writing a new commit file.
sub parse_args; # Parse ARGV for the options we support
sub rework_patch; # Use check_tree.pl to generate valid diffs on all valid files within the patch.
sub set_last_mutual; # Write back %hMutuals to $COMMIT_FILE
sub show_prg; # Helper to show a progress line that is not permanent.
sub wanted; # Callback function for File::Find
+# set signal-handlers
+$SIG{'INT'} = \&handle_sig;
+$SIG{'QUIT'} = \&handle_sig;
+$SIG{'TERM'} = \&handle_sig;
+
# ================================================================
# === ==> -------- Prechecks -------- <== ==
# ================================================================
return 0;
} ## end sub get_last_mutual
+
+# ---------------------------------------------------------------------------
+# --- Signal handler so we don't break without writing a new commit file. ---
+# ---------------------------------------------------------------------------
+sub handle_sig {
+ my($sig) = @_;
+ print "\nCaught SIG${sig}!\n";
+ set_last_mutual;
+ exit 1;
+}
+
+
# -----------------------------------------------------------------------
# --- parse the given list for arguments. ---
# --- returns 1 on success, 0 otherwise. ---
$result = 0;
next;
}
- $upstream_path = abs_path( $args[$i] );
+ $upstream_path = $args[$i];
} ## end else [ if ( length($upstream_path...))]
} ## end else [ if ( $args[$i] =~ m/^--advance$/)]
} ## End looping arguments
}
# Now we can build the fmt
- my $out_fmt = sprintf("%%-%ds\t%%-%ds\t%%-%ds\t%%-%ds\t%%s\n", $ref_len, $ref_len, $ref_len, $ref_len);
+ my $out_fmt = sprintf("%%-%ds %%-%ds %%-%ds %%-%ds %%s\n", $ref_len, $ref_len, $ref_len, $ref_len);
# Second we build the out text
# ---------------------------------------------------------------