libhandy-rs/fix-gir-mistakes.sh
2021-05-04 15:40:52 +00:00

13 lines
299 B
Bash
Executable file

#!/bin/sh
for file in $(find libhandy libhandy-sys/ -name '*.rs'); do
sed -i '/feature = "v2/d' "$file"
sed -i '/feature = "v3/d' "$file"
done
if [ "$(tail -n1 libhandy/src/auto/deck.rs)" != "use gtk::Widget;" ]; then
echo "use gtk::Widget;" >> libhandy/src/auto/deck.rs
fi
cargo fmt