Lines 22-32
Link Here
|
22 |
echo "\ttarget_dir\tis the directory to place the zips" |
22 |
echo "\ttarget_dir\tis the directory to place the zips" |
23 |
exit 1 |
23 |
exit 1 |
24 |
fi |
24 |
fi |
|
|
25 |
# just to remember the current working directory |
26 |
STARTING_DIR=`pwd` |
25 |
|
27 |
|
26 |
MOZ_DIST=$1 |
28 |
MOZ_DIST=$1 |
27 |
TARGET=$2 |
29 |
TARGET=$2 |
28 |
if [ "w$3" != "w" ]; then |
30 |
if [ "w$3" != "w" ]; then |
29 |
TARGET_DIR=$3 |
31 |
TARGET_DIR=$3 |
|
|
32 |
# need a full path here |
33 |
if [ "`echo $TARGET_DIR | cut -c1`" != "/" ]; then |
34 |
TARGET_DIR=$STARTING_DIR/$TARGET_DIR |
35 |
fi |
30 |
else |
36 |
else |
31 |
if [ "w$TARGET_DIR" == "w" ]; then |
37 |
if [ "w$TARGET_DIR" == "w" ]; then |
32 |
TARGET_DIR= |
38 |
TARGET_DIR= |
Lines 38-45
Link Here
|
38 |
ZIP_TARGET=../ |
44 |
ZIP_TARGET=../ |
39 |
fi |
45 |
fi |
40 |
|
46 |
|
41 |
# just to remember the current working directory |
|
|
42 |
STARTING_DIR=`pwd` |
43 |
|
47 |
|
44 |
echo |
48 |
echo |
45 |
echo --- creating zips for $TARGET, using mozilla distribution in $MOZ_DIST |
49 |
echo --- creating zips for $TARGET, using mozilla distribution in $MOZ_DIST |
Lines 79-85
Link Here
|
79 |
|
83 |
|
80 |
for i in `ls -1 $MOZ_DIST/$INC_FILES`; do |
84 |
for i in `ls -1 $MOZ_DIST/$INC_FILES`; do |
81 |
if [ ! -d $i ]; then |
85 |
if [ ! -d $i ]; then |
82 |
cp $MOZ_DIST/include/$i $TARGET_DIR/$TARGET/inc/mozilla |
86 |
cp -r $MOZ_DIST/include/$i $TARGET_DIR/$TARGET/inc/mozilla |
83 |
fi |
87 |
fi |
84 |
done |
88 |
done |
85 |
|
89 |
|
Lines 92-100
Link Here
|
92 |
|
96 |
|
93 |
# delete old zips |
97 |
# delete old zips |
94 |
|
98 |
|
95 |
[ -f $TARGET_DIR/$TARGET/runtime.zip ] && rm -f $TARGET_DIR/$TARGET/runtime.zip |
99 |
[ -f $TARGET_DIR/${TARGET}runtime.zip ] && rm -f $TARGET_DIR/${TARGET}runtime.zip |
96 |
[ -f $TARGET_DIR/$TARGET/lib.zip ] && rm -f $TARGET_DIR/$TARGET/lib.zip |
100 |
[ -f $TARGET_DIR/${TARGET}lib.zip ] && rm -f $TARGET_DIR/${TARGET}lib.zip |
97 |
[ -f $TARGET_DIR/$TARGET/inc.zip ] && rm -f $TARGET_DIR/$TARGET/inc.zip |
101 |
[ -f $TARGET_DIR/${TARGET}inc.zip ] && rm -f $TARGET_DIR/${TARGET}inc.zip |
98 |
|
102 |
|
99 |
# zip the runtime files |
103 |
# zip the runtime files |