Skip to content

Commit

Permalink
Re-alphabetize the seds in 00-prepare.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Sep 20, 2019
1 parent 262c241 commit ea4368e
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions dev/release/00-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ update_versions() {
;;
esac

cd "${SOURCE_DIR}/../../cpp"
sed -i.bak -E -e \
"s/^set\(ARROW_VERSION \".+\"\)/set(ARROW_VERSION \"${version}\")/" \
CMakeLists.txt
rm -f CMakeLists.txt.bak
git add CMakeLists.txt
cd -

cd "${SOURCE_DIR}/../../c_glib"
sed -i.bak -E -e \
"s/^m4_define\(\[arrow_glib_version\], .+\)/m4_define([arrow_glib_version], ${version})/" \
Expand All @@ -61,6 +53,22 @@ update_versions() {
git add configure.ac meson.build
cd -

cd "${SOURCE_DIR}/../../ci"
sed -i.bak -E -e \
"s/^pkgver=.+/pkgver=${r_version}/" \
PKGBUILD
rm -f PKGBUILD.bak
git add PKGBUILD
cd -

cd "${SOURCE_DIR}/../../cpp"
sed -i.bak -E -e \
"s/^set\(ARROW_VERSION \".+\"\)/set(ARROW_VERSION \"${version}\")/" \
CMakeLists.txt
rm -f CMakeLists.txt.bak
git add CMakeLists.txt
cd -

cd "${SOURCE_DIR}/../../csharp"
sed -i.bak -E -e \
"s/^ <Version>.+<\/Version>/ <Version>${version}<\/Version>/" \
Expand Down Expand Up @@ -99,17 +107,6 @@ update_versions() {
DESCRIPTION
rm -f DESCRIPTION.bak
git add DESCRIPTION
cd -

cd "${SOURCE_DIR}/../../ci"
sed -i.bak -E -e \
"s/^pkgver=.+/pkgver=${r_version}/" \
PKGBUILD
rm -f PKGBUILD.bak
git add PKGBUILD
cd -

cd "${SOURCE_DIR}/../../r"
if [ ${type} = "snapshot" ]; then
# Add a news entry for the new dev version
echo "dev"
Expand Down

0 comments on commit ea4368e

Please sign in to comment.