Commit 193b0801 authored by David Cotton's avatar David Cotton
Browse files

Altered the dearchival scripts to have the correct system variables in them."

Version 0.04. Tagged as 'TarExtend-0_04'
parent de42bea7
/* (0.03) /* (0.04)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* *
*/ */
#define Module_MajorVersion_CMHG 0.03 #define Module_MajorVersion_CMHG 0.04
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 11 Jun 1999 #define Module_Date_CMHG 16 Jun 1999
#define Module_MajorVersion "0.03" #define Module_MajorVersion "0.04"
#define Module_Version 3 #define Module_Version 4
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "11 Jun 1999" #define Module_Date "16 Jun 1999"
#define Module_FullVersion "0.03" #define Module_FullVersion "0.04"
...@@ -837,22 +837,22 @@ BOOL output_dearchiver_file(char* dearchiver_filename) ...@@ -837,22 +837,22 @@ BOOL output_dearchiver_file(char* dearchiver_filename)
output << "| This file is automatically generated by TarExtend. Do not manually alter." << endl << endl; output << "| This file is automatically generated by TarExtend. Do not manually alter." << endl << endl;
output << "| Before this script is run," << endl; output << "| Before this script is run," << endl;
output << "| <dearchiver_tool$dir> should be set to point to the directory containing FileCRC and tar." << endl; output << "| <dearchiver_tools$dir> should be set to point to the directory containing FileCRC and tar." << endl;
output << "| <cdname$dir> should be set to the root of the device that stores the archive (normally a CD)." << endl; output << "| <dearchiver_cdname$dir> should be set to the root of the device that stores the archive (normally a CD)." << endl;
output << endl << "set target$dir <obey$dir>" << endl; output << endl << "set target$dir <obey$dir>" << endl;
// Check the archive using CRC. // Check the archive using CRC.
output << endl << "| Checking CRC for the archive..." << endl; output << endl << "| Checking CRC for the archive..." << endl;
output << "echo Checking CRC for the archive" << endl; output << "echo Checking CRC for the archive" << endl;
output << "dir <cdname$dir>.dr" << endl; output << "dir <dearchiver_cdname$dir>.dr" << endl;
output << "*do <dearchiver_tool$dir>.filecrc -crc -single -d " << archive_name << " -f ^.CRCs.ArcCRC" << endl; output << "*do <dearchiver_tools$dir>.filecrc -crc -single -d " << archive_name << " -f ^.CRCs.ArcCRC" << endl;
// Dearchive the tarfile. // Dearchive the tarfile.
output << endl << "| Dearchiving the archive." << endl; output << endl << "| Dearchiving the archive." << endl;
output << "echo dearchiving the archive..." << endl; output << "echo dearchiving the archive..." << endl;
output << "dir <target$dir>" << endl; output << "dir <target$dir>" << endl;
output << "<dearchiver_tool$dir>.tar -xvf <cdname$dir>.dr." << archive_name << " " << root_filename << " { > unarclist }" << endl; output << "<dearchiver_tools$dir>.tar -xvf <dearchiver_cdname$dir>.dr." << archive_name << " " << root_filename << " { > unarclist }" << endl;
// Scan through the list backwards, outputing the details to the file. // Scan through the list backwards, outputing the details to the file.
output << endl << "| Renaming all the files." << endl; output << endl << "| Renaming all the files." << endl;
...@@ -865,7 +865,7 @@ BOOL output_dearchiver_file(char* dearchiver_filename) ...@@ -865,7 +865,7 @@ BOOL output_dearchiver_file(char* dearchiver_filename)
// Check that all the files are present and sizes are okay. // Check that all the files are present and sizes are okay.
output << endl << "| Use perl script to ensure all files have been dearchived." << endl; output << endl << "| Use perl script to ensure all files have been dearchived." << endl;
output << "do perl <dearchiver_tool$dir>.filecmp <cdname$dir>.dr.arclist <target$dir>.unarclist" << endl; output << "do perl <dearchiver_tools$dir>.filecmp <dearchiver_cdname$dir>.dr.arclist <target$dir>.unarclist" << endl;
// Finally set the filetype of unarclist to text // Finally set the filetype of unarclist to text
output << endl << "| Setting the filetype of the unarchive list to text" << endl; output << endl << "| Setting the filetype of the unarchive list to text" << endl;
...@@ -874,8 +874,8 @@ BOOL output_dearchiver_file(char* dearchiver_filename) ...@@ -874,8 +874,8 @@ BOOL output_dearchiver_file(char* dearchiver_filename)
// Check the sources using CRC. // Check the sources using CRC.
output << endl << "| checking CRC for the uncompressed sources..." << endl; output << endl << "| checking CRC for the uncompressed sources..." << endl;
output << "*echo checking CRC for the uncompressed sources..." << endl; output << "*echo checking CRC for the uncompressed sources..." << endl;
output << "*dir <cdname$dir>.dr" << endl; output << "*dir <dearchiver_cdname$dir>.dr" << endl;
output << "*do <dearchiver_tool$dir>.filecrc -crc -d <target$dir>." << root_filename << " -f ^.CRCs.SourcCRC" << endl; output << "*do <dearchiver_tools$dir>.filecrc -crc -d <target$dir>." << root_filename << " -f ^.CRCs.SourcCRC" << endl;
output.close(); output.close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment