File: gac-install

package info (click to toggle)
cli-common 0.10
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 284 kB
  • sloc: perl: 1,198; sh: 103; makefile: 44
file content (19 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download | duplicates (6)
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