Commit ab20303e authored by claes's avatar claes

*** empty log message ***

parent b8051dd0
#!/bin/bash #!/bin/bash
# #
# Proview $Id: pwr_pkg.sh,v 1.6 2006-07-28 09:57:08 claes Exp $ # Proview $Id: pwr_pkg.sh,v 1.7 2006-08-22 07:44:25 claes Exp $
# Copyright (C) 2005 SSAB Oxelsund AB. # Copyright (C) 2005 SSAB Oxelsund AB.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
...@@ -251,10 +251,10 @@ pkg_dir_func() ...@@ -251,10 +251,10 @@ pkg_dir_func()
pkg_dirbrief_func() pkg_dirbrief_func()
{ {
if [ -z $1 ]; then if [ -z "$1" ]; then
allpkg=`ls /home/pwrp/pwrp_pkg_*.tgz` allpkg=`ls /home/pwrp/pwrp_pkg_*.tgz`
else else
if [ $1 == ${1##*/} ]; then if [ "$1" == "${1##*/}" ]; then
# Add path # Add path
pattern="/home/pwrp/*$1*" pattern="/home/pwrp/*$1*"
elif [ ${1:0:1} == "/" ]; then elif [ ${1:0:1} == "/" ]; then
...@@ -267,7 +267,10 @@ pkg_dirbrief_func() ...@@ -267,7 +267,10 @@ pkg_dirbrief_func()
for pkg in $allpkg ; do for pkg in $allpkg ; do
if [ -z ${pkg##*pwrp_pkg_*.tgz} ]; then if [ -z ${pkg##*pwrp_pkg_*.tgz} ]; then
basename $pkg fname=`eval basename $pkg`
ftime=`eval stat $pkg --print=%z | cut -b -19`
# echo $fname $ftime
echo $fname
fi fi
done done
} }
...@@ -347,7 +350,7 @@ while [ -n "$(echo $1 | grep '-')" ]; do ...@@ -347,7 +350,7 @@ while [ -n "$(echo $1 | grep '-')" ]; do
-ld ) pkg_dir_func $OPTARG ;; -ld ) pkg_dir_func $OPTARG ;;
-l ) pkg_dirbrief_func $OPTARG;; -l ) pkg_dirbrief_func "$OPTARG";;
* ) cat <<EOF * ) cat <<EOF
usage: pwr_pkg [-i pkg] [-l [pkg]] [-b [pkg]] [-r] usage: pwr_pkg [-i pkg] [-l [pkg]] [-b [pkg]] [-r]
......
...@@ -37,4 +37,5 @@ ...@@ -37,4 +37,5 @@
060629 cs plc Bugfix: CStoIp, StoIp, StoAToIp and CStoAToIp with In-input not connected, did not fetch the supplied value. 060629 cs plc Bugfix: CStoIp, StoIp, StoAToIp and CStoAToIp with In-input not connected, did not fetch the supplied value.
060703 cs plc Bugfix in GetSp: short string could cause compile problems. 060703 cs plc Bugfix in GetSp: short string could cause compile problems.
060711 cs utl Bugfix in rtt crossreference list. Individual attributes were listed in RttObjectList. 060711 cs utl Bugfix in rtt crossreference list. Individual attributes were listed in RttObjectList.
060727 cs plc Execute order was not displayed on aarithm objects and other objects with graphmethod 2. 060727 cs plc Execute order was not displayed on aarithm objects and other objects with graphmethod 2.
\ No newline at end of file 060822 cs wb Performance improved when opening a node, and displaying the packages in the distributor.
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment