Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,17 @@ fn write_script<W: io::Write>(w: &mut W) -> Result<()> {
#

set -e

echo '+git stash --keep-index'
git stash --keep-index

exit_trap() {{
echo '+git stash pop --index'
git stash pop --index
}}

trap "exit_trap" EXIT INT TERM

{}"#,
env!("CARGO_PKG_VERSION"),
env!("CARGO_PKG_HOMEPAGE"),
Expand Down