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:
avolkov
2005-02-22 22:18:06 +00:00
parent f5aed5d943
commit e6b119a355
+4 -1
View File
@@ -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"