#
# Copyright 2005 Perforce Software. All rights reserved.
#
jobid=`p4 counter job`
echo "Counter: $jobid"
jobid=$(( $jobid + 1 ))
p4 counter -f job $jobid
if [ $jobid -lt 10 ]; then
jobid="job00000$jobid"
elif [ $jobid -lt 100 ]; then
jobid="job0000$jobid"
elif [ $jobid -lt 1000 ]; then
jobid="job000$jobid"
elif [ $jobid -lt 10000 ]; then
jobid="job00$jobid"
elif [ $jobid -lt 100000 ]; then
jobid="job0$jobid"
else
jobid="job$jobid"
fi
echo "JobID: $jobid"
p4 job -i <<FOO
Job: $jobid
Status: open
Type: BUG
Severity: C
Subsystem: p4web
ReportedBy: one
Description:
This is a test job
FOO
# |
Change |
User |
Description |
Committed |
|
#1
|
8493 |
Alan H Teague |
Initial import of the Enhanced Jobs Project |
|
|