-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit (from Subversion repository, r3278).
- Loading branch information
0 parents
commit cb5f427
Showing
765 changed files
with
119,245 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
Copyright 2010-2012 Artefactual Systems Inc. <http://artefactual.com> | ||
|
||
Please note, Archivematica also includes several third-party libraries, each with their own copyright and license terms. See http://archivematica.org/software. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Artefactual Systems Inc. <http://artefactual.com> owns all Archivematica trademarks, service marks, and graphic logos. | ||
|
||
Archivematica's LICENSE does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor except as required for reasonable and customary use in describing the origin of the Work. | ||
|
||
Guidelines for the use of Archivematica trademarks, service marks, and graphic logos are available at http://archivematica.org/trademark. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,198 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of Archivematica. | ||
# | ||
# Copyright 2010-2012 Artefactual Systems Inc. <http://artefactual.com> | ||
# | ||
# Archivematica is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Archivematica 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 Archivematica. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# @package Archivematica | ||
# @author Joseph Perry <[email protected]> | ||
# @version svn: $Id$ | ||
|
||
cd `dirname $0` | ||
|
||
fn_exists() | ||
{ | ||
type $1 2>/dev/null | grep -q 'is a function' | ||
} | ||
|
||
colour () { "$@" 2>&1>&3|sed 's,.*,\x1B[31m&\x1B[0m,'>&2;} 3>&1 | ||
|
||
function svn-update() { | ||
part="svn up" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
echo "Doing ${part} ..." | ||
echo "Cleaning up..." | ||
cd localDevSetup/ | ||
colour ./cleanup.sh | ||
cd .. | ||
SVNVERSION="`svnversion`" | ||
echo "Updating from ${SVNVERSION}. Bringing latest changes to the working copy..." | ||
svn update | ||
|
||
echo "Integrating into environment..." | ||
cd localDevSetup/ | ||
colour ./createLocalDevDirectories.sh | ||
cd .. | ||
else | ||
echo "not going to ${part}" | ||
fi | ||
} | ||
|
||
function package-update() { | ||
part="update/install package requirements" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
echo "Going to ${part} ..." | ||
cd localDevSetup/ | ||
colour sudo apt-get update | ||
colour sudo ./installDependsFromDebianFile.py ./../src/archivematicaCommon/debian/control | ||
#colour sudo ./installDependsFromDebianFile.py ./../src/createDublinCore/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/dashboard/debian/control | ||
#./installDependsFromDebianFile.py ./../src/easy-extract/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/MCPClient/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/MCPrpcCLI/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/MCPServer/debian/control | ||
colour #./installDependsFromDebianFile.py ./../src/metaPackage-forensic-tools/debian/control | ||
colour #./installDependsFromDebianFile.py ./../src/metaPackage-shotgun/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/sanitizeNames/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/SIPCreationTools/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/transcoder/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/upload-qubit/debian/control | ||
colour #./installDependsFromDebianFile.py ./../src/vm-includes/debian/control | ||
colour sudo ./installDependsFromDebianFile.py ./../src/xubuntuGuiScriptsEditor/debian/control | ||
cd .. | ||
else | ||
echo "Not going to ${part}." | ||
fi | ||
} | ||
|
||
function recreate-db() { | ||
part="recreate the databases" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
echo "Going to ${part} ..." | ||
cd localDevSetup/ | ||
sudo stop archivematica-mcp-server | ||
sudo stop archivematica-mcp-client | ||
sudo apache2ctl stop | ||
colour ./recreateDB.sh | ||
cd .. | ||
sudo start archivematica-mcp-server | ||
sudo start archivematica-mcp-client | ||
sudo apachectl start | ||
else | ||
echo "Not going to ${part}." | ||
fi | ||
} | ||
|
||
function restart() { | ||
part="restart archivematica services" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
echo "Going to ${part} ..." | ||
sudo stop archivematica-mcp-server | ||
sleep 1 | ||
sudo stop archivematica-mcp-client | ||
sleep 1 | ||
|
||
if [ -e "/tmp/archivematicaMCPServerPID" ] | ||
then | ||
sudo kill -9 `cat /tmp/archivematicaMCPServerPID` | ||
fi | ||
|
||
sleep 3 | ||
sudo rm /tmp/archivematicaMCP* | ||
colour sudo start archivematica-mcp-server | ||
colour sudo start archivematica-mcp-client | ||
colour sudo apache2ctl restart | ||
else | ||
echo "Not going to ${part}." | ||
fi | ||
} | ||
|
||
function export-sampledata() { | ||
part="export sample data to ~/sampledata" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
rev="`svn info | grep \"Revision: \" | awk -F " " '{print $2}'`" | ||
echo Going to export to '~/'sampledata-$rev ... | ||
colour svn export sampledata ~/sampledata-${rev} | ||
else | ||
echo "Not going to ${part}." | ||
fi | ||
} | ||
|
||
function install-gui() { | ||
part="re-create gui-scripts editor file" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
rm /home/$USER/.config/Thunar/uca.xml | ||
tmp="`pwd`" | ||
cd src/xubuntuGuiScriptsEditor/share | ||
colour ./addArchivematicaGUIScripts.sh | ||
cd "$tmp" | ||
else | ||
echo "Not going to ${part}." | ||
fi | ||
} | ||
|
||
function update-qubit() { | ||
part="update Qubit (trunk) and restart its qubit-sword service" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
sudo chmod -R 777 qubit-svn | ||
colour svn update qubit-svn | ||
sudo chmod -R 777 qubit-svn | ||
colour sudo stop qubit-sword | ||
colour sudo start qubit-sword | ||
echo "Remember to activate sfSwordPlugin and restart Qubit database if necessary!" | ||
else | ||
echo "Not going to ${part}." | ||
fi | ||
} | ||
|
||
function example() { | ||
part="example" | ||
echo -n "\"Would you like to ${part}?\" (y/N) " | ||
read a | ||
if [[ $a == "Y" || $a == "y" ]]; then | ||
echo "Going to ${part} ..." | ||
else | ||
echo "Not going to ${part}" | ||
fi | ||
} | ||
|
||
# Run only one function if given | ||
if [ ! -z ${1} ]; then | ||
${1} | ||
exit | ||
fi | ||
|
||
svn-update | ||
package-update | ||
recreate-db | ||
restart | ||
export-sampledata | ||
install-gui | ||
update-qubit |
Oops, something went wrong.