Version
top

Index Cache Score Version
summaryrefslogtreecommitdiff
path: root/put.sh
blob: 942d99afa1301f55e0561a22e364ebacbfc8a3ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#=======================================================================
# * Version: $Id: search.cgi,v 1.1.1.1 2015/05/31 14:39:44 nroche Exp $
# * Project: MediaTex
# * Module : Upload bash script
# *
# * This script is part of the collection meta-data
#
# MediaTex is an Electronic Records Management System
# Copyright (C) 2014  Nicolas Roche
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#=======================================================================
#set -x
set -e

QUERY="mediatex upload++"

USER=${PWD%/public_html/cgi}
USER=${USER##*/}
SERVER=${USER%-*}
COLL=${USER#*-}

#echo "$QUERY -c $SERVER $@ to coll $COLL"
$QUERY -c $SERVER $@ to coll $COLL -p -ffile 2>&1