Save upstream Version header line as X-Original-Version

Closes #659
This commit is contained in:
Steve Purcell 2013-04-07 11:02:27 +01:00
parent 0346f6349c
commit 8302f8d308

View file

@ -505,7 +505,12 @@ The file is written to `package-build-working-dir'."
"Ensure current buffer has a \"Version: VERSION\" header."
(goto-char (point-min))
(if (re-search-forward "^;;;* *Version: *" nil t)
(kill-whole-line)
(progn
(move-beginning-of-line nil)
(search-forward "Version" nil t)
(backward-word)
(insert "X-Original-")
(move-beginning-of-line nil))
(forward-line))
(insert (format ";; Version: %s" version))
(newline))