version 1.3, 2009/11/24 05:00:23 |
version 1.9, 2018/09/09 07:39:14 |
|
|
#!/bin/sh |
#!/bin/bash |
# $OpenXM: OpenXM_contrib2/windows/extract_gc.sh,v 1.2 2009/03/11 11:32:07 ohara Exp $ |
# $OpenXM: OpenXM_contrib2/windows/extract_gc.sh,v 1.8 2015/08/13 13:45:26 ohara Exp $ |
(shopt -s igncr) 2>/dev/null && eval 'shopt -s igncr';# |
(set -o igncr) 2>/dev/null && set -o igncr;# |
OpenXM_HOME=${OpenXM_HOME:-../../OpenXM} |
OpenXM_HOME=${OpenXM_HOME:-../../OpenXM} |
OpenXM_dist=${OpenXM_HOME}/../OpenXM_dist |
OpenXM_dist="$(realpath -m ${OpenXM_HOME}/../OpenXM_dist)" |
GC=gc-7.1 |
GC=gc-7.4.4 |
|
ATOMIC_OPS=libatomic_ops-7.4.4 |
GC_TARGZ=${GC}.tar.gz |
GC_TARGZ=${GC}.tar.gz |
GC_PATCH=gc-7.0-risa.diff |
GC_PATCH=gc-7.0-risa.diff |
PARI_TARGZ=pari-2.0.17.beta.tgz |
|
|
|
cat ${OpenXM_dist}/${PARI_TARGZ} | ( cd pari20; tar zxf -) |
|
tar zxf ${OpenXM_dist}/${GC_TARGZ} |
tar zxf ${OpenXM_dist}/${GC_TARGZ} |
|
tar zxf ${OpenXM_dist}/${ATOMIC_OPS}.tar.gz |
|
mv ${GC} gc |
|
mv ${ATOMIC_OPS} gc/libatomic_ops |
|
|
for i in ${GC_PATCH} ; do |
for i in ${GC_PATCH} ; do |
f=../asir2000/$i |
f=../asir2000/$i |
if [ -f $f ]; then |
if [ -f $f ]; then |
(cd ${GC}; patch -p1) < $f |
(cd gc; patch -p1) < $f |
fi |
fi |
done |
done |
echo -n > ${GC}/gc_cpp.cc |
echo -n > gc/gc_cpp.cc |