File: gac-install

package info (click to toggle)
cli-common 0.5.7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 208 kB
  • ctags: 11
  • sloc: perl: 913; sh: 53; makefile: 42
file content (19 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# Make sure the GAC file exists
if [ ! -x /usr/share/cli-common/runtimes.d/$1 ]; then
    echo ! Cannot install GAC $1
    exit 1
fi

# Make some useful noise
#echo "Installing packages in $1"

for file in /usr/share/cli-common/packages.d/*.installcligac
do
  if [ -f $file ]; then
      /usr/share/cli-common/gac-package-install \
	  $(basename $file .installcligac) \
	  $1
  fi
done