blokator/update-version.sh
2022-10-24 19:19:42 +02:00

15 lines
272 B
Bash
Executable file

#!/bin/bash
# USAGE:
# ./update-version.sh <from> <to>
if [ "$1" == "" ] || [ "$2" == "" ]
then
echo "error: Not enough arguments."
echo "usage: ./update-version.sh <from> <to>"
exit
fi
sed -i "s/$1/$2/g" Cargo.toml
sed -i "s/$1/$2/g" packages/archlinux/PKGBUILD