source: gs3-extensions/pharos/trunk/cmdline-api-srcpack/bin/script/pharos-imageis-delete.sh@ 21197

Last change on this file since 21197 was 21197, checked in by davidb, 14 years ago

renaming of scripts

File size: 460 bytes
Line 
1#!/bin/bash
2
3if [ $# != 2 ] ; then
4 echo "Usage: imageis-del-id.sh col id"
5 exit
6fi
7
8col=$1
9id=$2
10
11docid=$id
12if [ "x$col" != "x" ] ; then
13 docid="$col:$docid"
14fi
15
16
17echo "Generating del_id.xml"
18cat "$IMAGEISHOME/templates/del_id.xml" \
19 | sed "s@\*\*docid\*\*@$docid@g" \
20 > "/tmp/vsupload/del_id.xml"
21
22echo "Deleting $docid"
23
24java -jar "$IMAGEISHOME/ImageIS.jar" "/tmp/vsupload/del_id.xml"
25
26if [ $? == "0" ] ; then
27 /bin/rm "/tmp/vsupload/del_id.xml"
28fi
Note: See TracBrowser for help on using the repository browser.