15 lines
272 B
Bash
Executable file
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
|