Fix for when .ani file is directly in <indir>; processing transparency and not processing colormaps for .cel files
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1559 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+4
-1
@@ -31,13 +31,16 @@ processone() {
|
||||
if [ "$DIR" != "$FILE" -a ! -d "${OUTDIR}${DIR}" ]; then
|
||||
mkdir -p -- "${OUTDIR}${DIR}"
|
||||
fi
|
||||
if [ "$DIR" = "$FILE" ]; then
|
||||
DIR=""
|
||||
fi
|
||||
PREFIX="${FILE##*/}"
|
||||
PREFIX="${PREFIX%.*}"
|
||||
EXT="${FILE##*.}"
|
||||
echo "$EXT" "$PREFIX"
|
||||
if [ "$EXT" = "ani" ]; then
|
||||
"$UNANI" -c "$INDIR"lbm/scclrtab.ct -o "$OUTDIR$DIR" "$INDIR$FILE"
|
||||
"$UNANI" -a "$INDIR$FILE" > "$OUTDIR$FILE"
|
||||
"$UNANI" -bta "$INDIR$FILE" > "$OUTDIR$FILE"
|
||||
else
|
||||
"$UNANI" -c "$INDIR"lbm/scclrtab.ct -n "$PREFIX.$EXT" \
|
||||
-o "$OUTDIR$DIR" "$INDIR$FILE"
|
||||
|
||||
Reference in New Issue
Block a user