MANIFEST
patches-*
*-stamp
+release.sh
+setup.cfg.rpm
+snapshot.sh
-PREFIX = $(HOME)
-DESTDIR = /
-PYTHON = python
+PREFIX ?= $(HOME)
+DESTDIR ?= /
+PYTHON ?= python
all:
$(PYTHON) setup.py build
For the latest version see http://www.procode.org/stgit/
For a tutorial see http://wiki.procode.org/cgi-bin/wiki.cgi/StGIT_Tutorial
+
+Bugs or feature requests should be sent to the git@vger.kernel.org
+mailing list or the StGIT project page - http://gna.org/projects/stgit/
--- /dev/null
+This directory contains some of the scripts used for updating the
+public StGIT repository and releasing snapshots and main versions.
--- /dev/null
+#!/bin/sh
+#
+# An example hook script to prepare a packed repository for use over
+# dumb transports.
+#
+# To enable this hook, make this file executable by "chmod +x post-update".
+
+git repack -d
+git-update-server-info
+
+# FTP upload
+lftp ftp://your-ftp-site/stgit.git -u username,password -e " \
+set ftp:list-empty-ok yes; \
+echo Uploading objects; \
+mirror -RLecv objects objects; \
+echo Uploading refs; \
+mirror -RLecv refs refs; \
+echo Uploading info; \
+mirror -RLecv info info; \
+echo Uploading description; \
+put description -o description; \
+echo Uploading HEAD; \
+put HEAD -o HEAD; \
+exit"
--- /dev/null
+#!/bin/sh
+#
+# Makes a release
+
+set -e
+
+#UPLOAD=false
+UPLOAD=true
+
+VERSION=$(./stg --version | grep "Stacked GIT" | sed -e "s/Stacked GIT //")
+TARBALL=dist/stgit-$VERSION.tar.gz
+BINRPM=dist/stgit-$VERSION-1.noarch.rpm
+SRCRPM=dist/stgit-$VERSION-1.src.rpm
+DEBPKG=../stgit_$VERSION-0_all.deb
+
+git-rev-list --pretty HEAD > ChangeLog
+
+rm -f MANIFEST
+
+# source distribution
+python setup.py sdist
+gpg --detach-sign $TARBALL
+
+# build the binary distributions
+python setup.py bdist_rpm
+dpkg-buildpackage -rfakeroot -b
+
+# Upload
+$UPLOAD && echo Uploading...
+
+$UPLOAD && lftp ftp://your-ftp-site/stgit -u username,password -e " \
+set ftp:list-empty-ok yes; \
+echo Uploading $TARBALL; \
+put $TARBALL; \
+echo Uploading $BINRPM; \
+put $BINRPM; \
+echo Uploading $SRCRPM; \
+put $SRCRPM; \
+echo Uploading $DEBPKG; \
+put $DEBPKG; \
+exit"
+
+$UPLOAD && scp $TARBALL $TARBALL.sig username@download.gna.org:/upload/stgit/
--- /dev/null
+#!/bin/sh
+#
+# Builds a daily snapshot
+
+VERSION=`date "+%Y%m%d"`
+SNAPSHOT=dist/stgit-$VERSION.tar.gz
+
+git-rev-list --pretty HEAD > ChangeLog
+
+mv stgit/version.py stgit/version.py-
+echo "version = '$VERSION'" > stgit/version.py
+
+rm -f MANIFEST
+python setup.py sdist
+
+rm stgit/version.py
+mv stgit/version.py- stgit/version.py
+
+# Upload
+lftp ftp://your-ftp-site/stgit/snapshots -u username,password -e " \
+set ftp:list-empty-ok yes; \
+echo Uploading $SNAPSHOT; \
+put $SNAPSHOT; \
+exit"