Browse Source

Extend shell script to make source releases too

Luke Dashjr 13 years ago
parent
commit
6472e3725c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      make-release

+ 7 - 0
make-win32-zip → make-release

@@ -21,6 +21,13 @@ cp -v \
 	"$OUTDIR/"
 	"$OUTDIR/"
 git clone . "$TMPDIR" -b "$tag" --depth 1
 git clone . "$TMPDIR" -b "$tag" --depth 1
 cd "$TMPDIR"
 cd "$TMPDIR"
+git archive --prefix "$sw"/ --format tar "$tag" | tar xvp
+cd "$sw"
+./autogen.sh
+cd ..
+zip -r "$IDIR/${sw}.zip" "$sw"
+tar cjvpf "$IDIR/${sw}.tbz2" "$sw"
+SRCDIR="$TMPDIR/$sw"
 for txt in AUTHORS COPYING NEWS README; do
 for txt in AUTHORS COPYING NEWS README; do
 	cp -v "$txt" "$OUTDIR/${txt}.txt"
 	cp -v "$txt" "$OUTDIR/${txt}.txt"
 done
 done