version 1.1, 2005/02/25 07:49:43
|
version 1.4, 2005/03/18 00:28:59
|
|
|
# This is run just once, and generates the file cabinet_files.h, | # This is run just once, and generates the file cabinet_files.h, |
# which is then checked into CVS forever. | # which is then checked into CVS forever. |
# It is here just in case we want to add more test files later. | # It is here just in case we want to add more test files later. |
# Copyright 2005 Dan Kegel; LGPL |
# Copyright 2005 Dan Kegel, Rizwan Kassim; LGPL |
| |
#set -ex |
# remove "wine" before command calls if you're running on Windows |
|
|
|
set -ex |
| |
# First, get cabinet SDK | # First, get cabinet SDK |
# You might need to download it by hand from ttp://support.microsoft.com/?id=310618 | # You might need to download it by hand from ttp://support.microsoft.com/?id=310618 |
|
|
echo 'So long, and thanks for all the fish.....' > simple.txt | echo 'So long, and thanks for all the fish.....' > simple.txt |
wine cabsdk/BIN/CABARC.EXE N simple.cab simple.txt | wine cabsdk/BIN/CABARC.EXE N simple.cab simple.txt |
| |
# More complicated archive, with two files |
|
cp ../../../README README |
|
cp ../../../COPYING.LIB lgpl.txt |
|
wine cabsdk/BIN/CABARC.EXE N complex.cab README lgpl.txt |
|
|
|
# Blow away cabinet SDK | # Blow away cabinet SDK |
rm -rf cabsdk | rm -rf cabsdk |
| |
# Pack source files and archives into hex arrays | # Pack source files and archives into hex arrays |
perl ../../../tools/chexify.pl simple.txt README lgpl.txt simple.cab complex.cab > data.h |
perl ../../../tools/chexify.pl simple.txt txt simple.cab > simplecab.h |
|
|
|
rm -fr simple.cab |