6 Usage: ../stepmake-x.x.x/bin/stepmakeise.sh
7 Include or update package's StepMake.
22 expression
=`echo $1 | sed 's/\./ \\\\\* 100 + /g'`
23 # urg? $1=`expr $expression`
24 urg
=/tmp
/stepmakeise.$$
25 echo expr $expression > $urg
30 if [ -r stepmake
]; then
32 if [ "x$PACKAGE_NAME" != "xStepMake" ]; then
37 echo -n "Checking version..."
38 VERSION
=$MAJOR_VERSION.
$MINOR_VERSION.
$PATCH_LEVEL
41 if [ "$MY_PATCH_LEVEL" != "" ]; then
42 VERSION
=$VERSION.
$MY_PATCH_LEVEL
52 echo -n "Checking latest..."
53 if [ ! -r $reldir ]; then
57 LATEST
=`cd $reldir; ls -t1 stepmake-*.tar.gz | head -n 1 | sed 's!stepmake-!!' | sed 's!.tar.gz!!'`
59 latest
=`echo $LATEST | sed 's/\.[a-zA-Z][a-zA-Z]*[0-9]*$//'`
60 latest_val
=`value $latest`
62 version_val
=`value $version`
63 if [ $latest_val -le $version_val ]; then
64 echo "relax, StepMake is up to date"
67 echo -n "Updating StepMake..."
68 (set +x
; rm -rf stepmake
; tar xzf
$reldir/stepmake-
$LATEST.
tar.gz
; mv stepmake-
$LATEST stepmake
)
72 if [ -r VERSION
]; then
73 echo "$name: warning: VERSION found: not stepmakeising"
74 echo "You should rerun configure"
79 files
="VERSION make aclocal.in configure.in config.hh.in config.make.in"
82 echo "$name: can't stepmakise: $i already present"
87 echo -n "Stepmakeising..."
94 Please edit the folowing files to your package's needs:
101 make/Toplevel.make.in