mirror of
https://github.com/Michaelangel007/apple2gs_shr_converter.git
synced 2024-11-27 20:50:06 +00:00
52 lines
1.2 KiB
Batchfile
52 lines
1.2 KiB
Batchfile
#!/bin/sh
|
|
# kill.sh - house-cleaning script
|
|
# cleans unwanted input and output from working directory
|
|
# must be run from the command line
|
|
# killpalette.sh must also be run after kill.sh to remove unused external palettes
|
|
if [ ! -z "$1" ]; then
|
|
find -iname $1* -exec rm {} \;
|
|
else
|
|
echo "no args"
|
|
fi
|
|
# this is the end
|
|
|
|
#!/bin/sh
|
|
# killpalette.sh - house-cleaning script
|
|
# removes external segmented palette files left-over from deleted images and related output
|
|
# then removes the associated palette directory
|
|
# if the done directory does not contain a processed bmp, assumes the palettes are no longer needed
|
|
cd sh0pcx
|
|
for i in $(ls); do
|
|
tgt=$(basename $i)
|
|
if [ ! -e ../done/$tgt.bmp ]; then
|
|
if [ -e ./$tgt/0.pcx ]; then
|
|
rm ./$tgt/*.pcx
|
|
fi
|
|
rmdir ./$tgt
|
|
fi
|
|
done
|
|
cd ..
|
|
cd sh2pcx
|
|
for i in $(ls); do
|
|
tgt=$(basename $i)
|
|
if [ ! -e ../done/$tgt.bmp ]; then
|
|
if [ -e ./$tgt/0.pcx ]; then
|
|
rm ./$tgt/*.pcx
|
|
fi
|
|
rmdir ./$tgt
|
|
fi
|
|
done
|
|
cd ..
|
|
cd sh3pcx
|
|
for i in $(ls); do
|
|
tgt=$(basename $i)
|
|
if [ ! -e ../done/$tgt.bmp ]; then
|
|
if [ -e ./$tgt/0.pcx ]; then
|
|
rm ./$tgt/*.pcx
|
|
fi
|
|
rmdir ./$tgt
|
|
fi
|
|
done
|
|
cd ..
|
|
# this is the end
|