version 1.1, 2018/09/08 05:35:35 |
version 1.2, 2019/03/06 02:38:33 |
|
|
# $OpenXM$ |
# $OpenXM: OpenXM/src/sage/Makefile,v 1.1 2018/09/08 05:35:35 takayama Exp $ |
# This is a Makefile to test the module asir.py on mathlibre2018. |
|
# su ; make install |
|
usage: |
usage: |
"make diff, make install (as root)" |
@echo "make install (as root)" |
|
@echo " copy-to-ox, copy-from-ox" |
|
|
SAGE_ASIR_DIR=${OpenXM_HOME}/src/sage |
|
|
|
diff: |
|
-(cd /usr/lib/python2.7/dist-packages/sage/interfaces ; diff -c all.py.orig all.py) >all.py.diff |
|
|
|
install: |
install: |
(cd /usr/lib/python2.7/dist-packages/sage/interfaces ; ln -s ${SAGE_ASIR_DIR}/asir.py . ; patch <${SAGE_ASIR_DIR}/all.py.diff) |
cp asir.py /usr/lib/python2.7/dist-packages/sage/interfaces |
|
(cd /usr/lib/python2.7/dist-packages/sage/interfaces ; patch ) <all.py.diff |
|
|
|
# for misc-2018/A3/sage-asir |
|
copy-to-ox: |
|
rsync -avzu asir.py ${OpenXM_HOME}/src/sage/asir.py |
|
rsync -avzu Makefile ${OpenXM_HOME}/src/sage/Makefile |
|
@echo "commit $OpenXM_HOME and make copy-from-ox, git-misc commit" |
|
copy-from-ox: |
|
rsync -avzu ${OpenXM_HOME}/src/sage/asir.py asir.py |
|
rsync -avzu ${OpenXM_HOME}/src/sage/Makefile Makefile |
|
|