Просмотр исходного кода

Fix version-bumping script

The script now also updates the version requirement of ido-cr+ in the
Package-Requires line of ido-ubiquitous.
Ryan C. Thompson 9 лет назад
Родитель
Сommit
7e560574c5
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      setversion.sh

+ 3 - 2
setversion.sh

@@ -4,6 +4,7 @@ TARGET_VERSION="$1"
 if [ -n "$TARGET_VERSION" ]; then
 if [ -n "$TARGET_VERSION" ]; then
     echo "Updating version to $TARGET_VERSION";
     echo "Updating version to $TARGET_VERSION";
     perl -i'orig_*' -lape "s/Version: [0-9.]+/Version: $TARGET_VERSION/g;" \
     perl -i'orig_*' -lape "s/Version: [0-9.]+/Version: $TARGET_VERSION/g;" \
-        -e "s/((?:defconst|defvar|setq).*-version\s+)\"[0-9.]+\"/\${1}\"$TARGET_VERSION\"/g;" \
-        *.el
+         -e "s/((?:defconst|defvar|setq).*-version\s+)\"[0-9.]+\"/\${1}\"$TARGET_VERSION\"/g;" \
+         -e "s/(Package-Requires.*\(ido-completing-read\+\s+)\"[0-9.]+\"\)/\${1}\"${TARGET_VERSION}\")/g;" \
+         *.el
 fi
 fi