reformat date, use it as version

Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
This commit is contained in:
Gwenhael Le Moine 2010-01-07 13:07:39 +07:00
parent 343069a3c1
commit 7424a8e716

View file

@ -20,7 +20,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Slackware build script for emacs-23 # Slackware build script for emacs-trunk
# Written by Dušan Stefanović (stefanovic.dusan@gmail.com) # Written by Dušan Stefanović (stefanovic.dusan@gmail.com)
# Modified by Robby Workman <rworkman@slackbuilds.org> # Modified by Robby Workman <rworkman@slackbuilds.org>
@ -29,10 +29,10 @@
PRGNAM=emacs PRGNAM=emacs
BRANCH=trunk BRANCH=trunk
VERSION=${VERSION:-$BRANCH} VERSION=${VERSION:-${BRANCH}_$(date +"%Y.%m.%d_%H:%M")}
ARCH=${ARCH:-$(uname -m)} ARCH=${ARCH:-$(uname -m)}
NUMJOBS=${NUMJOBS:-" -j3 "} NUMJOBS=${NUMJOBS:-" -j3 "}
BUILD=${BUILD:-$(date +"%Y%m%d")} BUILD=${BUILD:-1}
PACKAGER=cyco PACKAGER=cyco
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
@ -68,7 +68,8 @@ if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
bzr update bzr update
) )
# FIXME: Hackish hack # FIXME: Hackish hack
cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION # cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION
mkdir -p $TMP/$PRGNAM-$VERSION
SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH
else else
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1 tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1