mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
paths within src directory need to change to match class names. Not
sure how I thought this was working before.
This commit is contained in:
parent
0732da0724
commit
933b812d3a
1 changed files with 9 additions and 4 deletions
|
@ -22,12 +22,16 @@ add_to_gitignored() {
|
|||
do_dir() {
|
||||
local SRC_PATH=$1
|
||||
local DEST_PATH=$2
|
||||
local DIR=$3
|
||||
local SRC_DIR=$3
|
||||
local DEST_DIR=$SRC_DIR
|
||||
if [ $SRC_DIR = "xw4" ]; then
|
||||
DEST_DIR=$VARIANT
|
||||
fi
|
||||
|
||||
SRC_PATH=$SRC_PATH/$DIR
|
||||
SRC_PATH=$SRC_PATH/$SRC_DIR
|
||||
[ -d $SRC_PATH ] || usage "$SRC_PATH not found"
|
||||
|
||||
DEST_PATH=$DEST_PATH/$DIR
|
||||
DEST_PATH=$DEST_PATH/$DEST_DIR
|
||||
mkdir -p $DEST_PATH
|
||||
|
||||
for FILE in $SRC_PATH/*; do
|
||||
|
@ -38,7 +42,8 @@ do_dir() {
|
|||
if git ls-files $FILE --error-unmatch 2>/dev/null; then
|
||||
echo "skipping $FILE; it's under version control within this variant"
|
||||
else
|
||||
make -f $MAKEFILE SRC_PATH=$SRC_PATH DEST_PATH=$DEST_PATH VARIANT=${VARIANT} $FILE
|
||||
make -f $MAKEFILE SRC_PATH=$SRC_PATH DEST_PATH=$DEST_PATH \
|
||||
VARIANT=${VARIANT} $FILE
|
||||
add_to_gitignored $DEST_PATH $(basename $FILE)
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue