36 lines
968 B
Bash
Executable File
36 lines
968 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script was used to generate FileSystem example archives
|
|
# Until it occurred to me that on platforms other than Linux
|
|
# these utilities are not really that easily useful... :(
|
|
|
|
FILELIST="Markup/XML/XMLDataFormat.xml Markup/TODO LICENSE README.md"
|
|
|
|
if [ ! -d FileSystem ]; then
|
|
mkdir FileSystem
|
|
fi
|
|
|
|
echo $FILELIST
|
|
|
|
echo "Generating PKZIP example archive..."
|
|
zip ZIPDataFormat.zip $FILELIST
|
|
|
|
echo "Generating 7-Zip example archive..."
|
|
7z a 7ZDataFormat.7z $FILELIST
|
|
|
|
echo "Generating CPIO example archive..."
|
|
echo $FILELIST | tr ' ' '\n' > filelist.tmp
|
|
cpio -v --create < filelist.tmp > CPIODataFormat.cpio
|
|
rm filelist.tmp
|
|
|
|
echo "Generating TAR example archive..."
|
|
tar cfv TARDataFormat.tar $FILELIST
|
|
|
|
mv ./ZIPDataFormat.zip ./FileSystem
|
|
mv ./7ZDataFormat.7z ./FileSystem
|
|
mv ./CPIODataFormat.cpio ./FileSystem
|
|
mv ./TARDataFormat.tar ./FileSystem
|
|
|
|
cp ./FileSystem/TARDataFormat.tar ./FileSystem/TarXzDataFormat.tar
|
|
xz ./FileSystem/TarXzDataFormat.tar
|