-changed file names and comments from campcaster to airtime in utils/ folder

This commit is contained in:
mkonecny 2011-01-05 14:18:03 -05:00
parent dcec6bf4b1
commit 9bda47eff4
8 changed files with 38 additions and 38 deletions

View File

@ -2,25 +2,25 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S. # Copyright (c) 2010 Sourcefabric O.P.S.
# #
# This file is part of the Campcaster project. # This file is part of the Airtime project.
# http://campcaster.sourcefabric.org/ # http://campcaster.sourcefabric.org/
# #
# Campcaster is free software; you can redistribute it and/or modify # Airtime is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# Campcaster is distributed in the hope that it will be useful, # Airtime is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software # along with Airtime; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# This script cleans audio files in the Campcaster storageServer. # This script cleans audio files in the Airtime storageServer.
php -q CleanStor.php "$@" || exit 1 php -q CleanStor.php "$@" || exit 1

View File

@ -2,26 +2,26 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S. # Copyright (c) 2010 Sourcefabric O.P.S.
# #
# This file is part of the Campcaster project. # This file is part of the Airtime project.
# http://campcaster.sourcefabric.org/ # http://campcaster.sourcefabric.org/
# #
# Campcaster is free software; you can redistribute it and/or modify # Airtime is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# Campcaster is distributed in the hope that it will be useful, # Airtime is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software # along with Airtime; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# This script creates a tgz archive of the Campcaster storage. # This script creates a tgz archive of the Airtime storage.
# #
# To get usage help, try the -h option # To get usage help, try the -h option
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
@ -44,7 +44,7 @@ destfile="storage$datestr.tar"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
printUsage() printUsage()
{ {
echo "This script creates a tgz archive of the Campcaster storage."; echo "This script creates a tgz archive of the Airtime storage.";
echo "parameters:"; echo "parameters:";
echo ""; echo "";
echo " -d, --destination Destination directory [default:$tmpmaindir]."; echo " -d, --destination Destination directory [default:$tmpmaindir].";
@ -91,7 +91,7 @@ tmpdir=`mktemp -d $tmpmaindir/tmp.XXXXXX`
echo "Backuping to $destdir/$destfile :" echo "Backuping to $destdir/$destfile :"
echo "Dumping database ..." echo "Dumping database ..."
cd $phpdir cd $phpdir
php -q campcaster_backup.php > $tmpdir/$dbxml php -q airtime_backup.php > $tmpdir/$dbxml
echo "Packaging stored files ..." echo "Packaging stored files ..."
cd $phpdir cd $phpdir
storpath=`php -q getStorPath.php` storpath=`php -q getStorPath.php`

View File

@ -2,26 +2,26 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S. # Copyright (c) 2010 Sourcefabric O.P.S.
# #
# This file is part of the Campcaster project. # This file is part of the Airtime project.
# http://campcaster.sourcefabric.org/ # http://campcaster.sourcefabric.org/
# #
# Campcaster is free software; you can redistribute it and/or modify # Airtime is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# Campcaster is distributed in the hope that it will be useful, # Airtime is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software # along with Airtime; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# This script imports audio files to the Campcaster storageServer. # This script imports audio files to the Airtime storageServer.
# #
# To get usage help, try the -h option # To get usage help, try the -h option
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
@ -40,4 +40,4 @@ invokePwd=$PWD
#echo $invokePwd #echo $invokePwd
cd $phpdir cd $phpdir
php -q campcaster-import.php --dir "$invokePwd" "$@" || exit 1 php -q airtime-import.php --dir "$invokePwd" "$@" || exit 1

View File

@ -2,7 +2,7 @@
/** /**
* Mass import of audio files. * Mass import of audio files.
* *
* @package Campcaster * @package Airtime
* @subpackage StorageAdmin * @subpackage StorageAdmin
* @copyright 2010 Sourcefabric O.P.S. * @copyright 2010 Sourcefabric O.P.S.
* @license http://www.gnu.org/licenses/gpl.txt * @license http://www.gnu.org/licenses/gpl.txt
@ -27,7 +27,7 @@ function camp_import_error_handler()
function printUsage() function printUsage()
{ {
global $CC_CONFIG; global $CC_CONFIG;
echo "There are two ways to import audio files into Campcaster: linking\n"; echo "There are two ways to import audio files into Airtime: linking\n";
echo "or copying.\n"; echo "or copying.\n";
echo "\n"; echo "\n";
echo "Linking has the advantage that it will not duplicate any files,\n"; echo "Linking has the advantage that it will not duplicate any files,\n";
@ -40,13 +40,13 @@ function printUsage()
echo "your files.\n"; echo "your files.\n";
echo "\n"; echo "\n";
echo "Usage:\n"; echo "Usage:\n";
echo " campcaster-import [OPTIONS] FILES_OR_DIRS\n"; echo " airtime-import [OPTIONS] FILES_OR_DIRS\n";
echo "\n"; echo "\n";
echo "Options:\n"; echo "Options:\n";
echo " -l, --link Link to specified files.\n"; echo " -l, --link Link to specified files.\n";
echo " Saves storage space, but you cannot move, delete,\n"; echo " Saves storage space, but you cannot move, delete,\n";
echo " or rename the original files, otherwise there will\n"; echo " or rename the original files, otherwise there will\n";
echo " be dead air when Campcaster tries to play the file.\n"; echo " be dead air when Airtime tries to play the file.\n";
echo "\n"; echo "\n";
echo " -c, --copy Copy the specified files.\n"; echo " -c, --copy Copy the specified files.\n";
echo " This is useful if you are importing from removable media.\n"; echo " This is useful if you are importing from removable media.\n";
@ -228,7 +228,7 @@ function camp_import_audio_file($p_filepath, $p_importMode = null, $p_testOnly =
$DEBUG_IMPORT = false; $DEBUG_IMPORT = false;
echo "========================\n"; echo "========================\n";
echo "Campcaster Import Script\n"; echo "Airtime Import Script\n";
echo "========================\n"; echo "========================\n";
$g_errors = 0; $g_errors = 0;
//print_r($argv); //print_r($argv);
@ -350,4 +350,4 @@ if ($g_errors > 0) {
echo " *** Total: ".($g_fileCount+$g_duplicates)." files in $time seconds = $speed files/second.\n"; echo " *** Total: ".($g_fileCount+$g_duplicates)." files in $time seconds = $speed files/second.\n";
echo "==========================================================================\n"; echo "==========================================================================\n";
?> ?>

View File

@ -2,26 +2,26 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S. # Copyright (c) 2010 Sourcefabric O.P.S.
# #
# This file is part of the Campcaster project. # This file is part of the Airtime project.
# http://campcaster.sourcefabric.org/ # http://campcaster.sourcefabric.org/
# #
# Campcaster is free software; you can redistribute it and/or modify # Airtime is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# Campcaster is distributed in the hope that it will be useful, # Airtime is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software # along with Airtime; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# This script restores the data which was backed up with campcaster-backup. # This script restores the data which was backed up with airtime-backup.
# #
# To get usage help, try the -h option # To get usage help, try the -h option
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
@ -42,7 +42,7 @@ tarfile0="xmls.tar"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
printUsage() printUsage()
{ {
echo "This script restores the data which was backed up with campcaster-backup." echo "This script restores the data which was backed up with airtime-backup."
echo "parameters:"; echo "parameters:";
echo ""; echo "";
echo " -f, --file File with the backed up data, required."; echo " -f, --file File with the backed up data, required.";

View File

@ -2,22 +2,22 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S. # Copyright (c) 2010 Sourcefabric O.P.S.
# #
# This file is part of the Campcaster project. # This file is part of the Airtime project.
# http://campcaster.sourcefabric.org/ # http://campcaster.sourcefabric.org/
# To report bugs, send an e-mail to bugs@campware.org # To report bugs, send an e-mail to bugs@campware.org
# #
# Campcaster is free software; you can redistribute it and/or modify # Airtime is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# Campcaster is distributed in the hope that it will be useful, # Airtime is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software # along with Airtime; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------

View File

@ -3,22 +3,22 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S. # Copyright (c) 2010 Sourcefabric O.P.S.
# #
# This file is part of the Campcaster project. # This file is part of the Airtime project.
# http://campcaster.sourcefabric.org/ # http://campcaster.sourcefabric.org/
# To report bugs, send an e-mail to bugs@campware.org # To report bugs, send an e-mail to bugs@campware.org
# #
# Campcaster is free software; you can redistribute it and/or modify # Airtime is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# Campcaster is distributed in the hope that it will be useful, # Airtime is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software # along with Airtime; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# #
# #