Ver código fonte

Improve setversion.sh

Ryan C. Thompson 10 anos atrás
pai
commit
cb39bc368d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      setversion.sh

+ 1 - 1
setversion.sh

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