Chameleon

Chameleon Commit Details

Date:2011-12-11 19:46:10 (12 years 4 months ago)
Author:JrCs
Commit:1721
Parents: 1720
Message:Fix the packaging of Keylayout module that r1677 break
Changes:
M/trunk/package/buildpkg.sh

File differences

trunk/package/buildpkg.sh
194194
195195
196196
197
197198
198199
199
200
200
201
202
203
204
205
206
207
208
209
210
211
212
213
201214
202
215
203216
204217
205218
......
208221
209222
210223
211
224
212225
213226
214227
}
fi
# -
# Warning Keylayout module need additional files
if [ -e ${1%/*}/i386/modules/Keylayout.dylib ]; then
{
mkdir -p ${1}/Keylayout/Root
ditto --noextattr --noqtn ${1%/*}/i386/modules/Keylayout.dylib ${1}/Keylayout/Root
mkdir -p ${1}/Keylayout/Root/Extra/{modules,Keymaps}
mkdir -p ${1}/Keylayout/Root/usr/local/bin
layout_src_dir="${1%/sym/*}/i386/modules/Keylayout/layouts/layouts-src"
if [ -d "$layout_src_dir" ];then
# Create a tar.gz from layout sources
(cd "$layout_src_dir"; \
tar czf "${1}/Keylayout/Root/Extra/Keymaps/layouts-src.tar.gz" README *.slt)
fi
# Adding module
ditto --noextattr --noqtn ${1%/*}/i386/modules/Keylayout.dylib ${1}/Keylayout/Root/Extra/modules
# Adding Keymaps
ditto --noextattr --noqtn ${1%/sym/*}/Keymaps ${1}/Keylayout/Root/Extra/Keymaps
# Adding tools
ditto --noextattr --noqtn ${1%/*}/i386/cham-mklayout ${1}/Keylayout/Root/usr/local/bin
echo "[BUILD] Keylayout "
buildpackage "${1}/Keylayout" "/$chamTemp/Extra/modules" "" "start_selected=\"false\"" >/dev/null 2>&1
buildpackage "${1}/Keylayout" "/" "" "start_selected=\"true\"" >/dev/null 2>&1
}
fi
}
else
{
echo " -= no modules to include =-"
echo "-= no modules to include =-"
}
fi
# End build Modules packages

Archive Download the corresponding diff file

Revision: 1721