[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] maintaining perl modules with arch?
From: |
Dustin Sallings |
Subject: |
Re: [Gnu-arch-users] maintaining perl modules with arch? |
Date: |
Fri, 3 Sep 2004 22:07:02 -0700 |
On Sep 3, 2004, at 16:55, Jeremy Shaw wrote:
qIO (system ("tla logs -srf | head -n1 > " ++ tempfile))
I do something similar in some of my projects, except it looks like
this:
#!/bin/sh
# Start with the latest patch
base=`tla logs -f | tail -1`
# Find out how many changes there are that are not build number changes
changes=""
changen=`tla changes | egrep -v "^\*|etc/build.number" | wc -l`
# Figure out if we have uncommitted changes
if [ $changen -gt 0 ]
then
changes=" (plus uncommited changes)"
fi
echo "$base$changes"
So, for a java project using ant, for example, I can do this:
<exec executable="./etc/tree-version"
outputproperty="tree.version"/>
Then I just get all that stuff into the output which allows for things
such as this:
dustinti:~/prog/spyjar 508% java -jar spy.jar
spy.jar build 454 on Sun May 23 20:57:00 PDT 2004
Build platform: java 1.4.2_03 from Apple Computer, Inc. on Mac OS X
version 10.3.3
Tree version: address@hidden/spyjar--head--1.0--patch-20
(add -c to see the recent changelog)
(-c does an entire changelog for the branch)
--
SPY My girlfriend asked me which one I like better.
pub 1024/3CAE01D5 1994/11/03 Dustin Sallings <address@hidden>
| Key fingerprint = 87 02 57 08 02 D0 DA D6 C8 0F 3E 65 51 98 D8 BE
L_______________________ I hope the answer won't upset her. ____________