0
3
0
1 | 1 |
#! /usr/bin/env python |
2 |
# |
|
3 |
# This file is a part of LEMON, a generic C++ optimization library. |
|
4 |
# |
|
5 |
# Copyright (C) 2003-2009 |
|
6 |
# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
|
7 |
# (Egervary Research Group on Combinatorial Optimization, EGRES). |
|
8 |
# |
|
9 |
# Permission to use, modify and distribute this software is granted |
|
10 |
# provided that this copyright notice appears in all copies. For |
|
11 |
# precise terms see the accompanying LICENSE file. |
|
12 |
# |
|
13 |
# This software is provided "AS IS" with no warranty of any kind, |
|
14 |
# express or implied, and with no claim as to its suitability for any |
|
15 |
# purpose. |
|
2 | 16 |
|
3 | 17 |
import sys |
4 | 18 |
|
5 | 19 |
from mercurial import ui, hg |
6 | 20 |
from mercurial import util |
7 | 21 |
|
8 | 22 |
util.rcpath = lambda : [] |
9 | 23 |
|
10 | 24 |
if len(sys.argv)>1 and sys.argv[1] in ["-h","--help"]: |
11 | 25 |
print """ |
12 | 26 |
This utility just prints the length of the longest path |
13 | 27 |
in the revision graph from revison 0 to the current one. |
1 | 1 |
#!/bin/bash |
2 |
# |
|
3 |
# This file is a part of LEMON, a generic C++ optimization library. |
|
4 |
# |
|
5 |
# Copyright (C) 2003-2009 |
|
6 |
# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
|
7 |
# (Egervary Research Group on Combinatorial Optimization, EGRES). |
|
8 |
# |
|
9 |
# Permission to use, modify and distribute this software is granted |
|
10 |
# provided that this copyright notice appears in all copies. For |
|
11 |
# precise terms see the accompanying LICENSE file. |
|
12 |
# |
|
13 |
# This software is provided "AS IS" with no warranty of any kind, |
|
14 |
# express or implied, and with no claim as to its suitability for any |
|
15 |
# purpose. |
|
2 | 16 |
|
3 | 17 |
set -e |
4 | 18 |
|
5 | 19 |
if [ $# = 0 ]; then |
6 | 20 |
echo "Usage: $0 release-id" |
7 | 21 |
exit 1 |
8 | 22 |
else |
9 | 23 |
export LEMON_VERSION=$1 |
10 | 24 |
fi |
11 | 25 |
|
12 | 26 |
echo '*****************************************************************' |
13 | 27 |
echo ' Start making release tarballs for version '${LEMON_VERSION} |
1 | 1 |
#!/bin/bash |
2 |
# |
|
3 |
# This file is a part of LEMON, a generic C++ optimization library. |
|
4 |
# |
|
5 |
# Copyright (C) 2003-2009 |
|
6 |
# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
|
7 |
# (Egervary Research Group on Combinatorial Optimization, EGRES). |
|
8 |
# |
|
9 |
# Permission to use, modify and distribute this software is granted |
|
10 |
# provided that this copyright notice appears in all copies. For |
|
11 |
# precise terms see the accompanying LICENSE file. |
|
12 |
# |
|
13 |
# This software is provided "AS IS" with no warranty of any kind, |
|
14 |
# express or implied, and with no claim as to its suitability for any |
|
15 |
# purpose. |
|
2 | 16 |
|
3 | 17 |
YEAR=`date +%Y` |
4 | 18 |
HGROOT=`hg root` |
5 | 19 |
|
6 | 20 |
function hg_year() { |
7 | 21 |
if [ -n "$(hg st $1)" ]; then |
8 | 22 |
echo $YEAR |
9 | 23 |
else |
10 | 24 |
hg log -l 1 --template='{date|isodate}\n' $1 | |
11 | 25 |
cut -d '-' -f 1 |
12 | 26 |
fi |
13 | 27 |
} |
0 comments (0 inline)