Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New release procedure simplifies this script.

I'll make a branch for every release and edit version.h in git. That
way the release tarball comes directly out of git. This simplifies the
logic for generating the tarball and means that the repo provides a
more complete history of what we've done.
  • Loading branch information...
commit 4267bda8eb696c9e4a57b7c5fcb265705b16a3d4 1 parent b238076
Keith Rarick authored
Showing with 3 additions and 26 deletions.
  1. +1 −25 pkg.sh
  2. +2 −1  version.h
View
26 pkg.sh
@@ -3,30 +3,6 @@
prog="$1"; shift
vers="$1"; shift
file="$1"; shift
-tdir=/tmp/beanstalk-pkg.$$.d
pfx="$prog-$vers"
-cleanup() {
- rm -rf $tdir
-}
-
-trap cleanup EXIT
-
-mkdir -p $tdir
-
-git-archive --format=tar --prefix="$pfx/" "v$vers" > $tdir/p.tar
-
-# Replace version.h with the actual release version.
-(
- cd $tdir
- tar --delete -f p.tar "$pfx/version.h" || true
- mkdir -p "$pfx"
- cat > "$pfx/version.h" <<END
-/* version.h - beanstalkd version header */
-/* This file was generated by pkg.sh */
-#define VERSION "$vers"
-END
- tar rf p.tar "$pfx/version.h"
-)
-
-gzip -9 < $tdir/p.tar > "$file"
+git-archive --format=tar --prefix="$pfx/" "r$vers" | gzip -9 > "$file"
View
3  version.h
@@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/* This file will be replaced by pkg.sh */
+/* This file should be updated on each release branch; it should remain
+ * unchanged in master. */
#define VERSION "dev"
Please sign in to comment.
Something went wrong with that request. Please try again.