[BACK]Return to clean-for-binary-dist CVS log [TXT][DIR] Up to [local] / OpenXM / misc

Annotation of OpenXM/misc/clean-for-binary-dist, Revision 1.1.1.1

1.1       maekawa     1: #!/bin/csh
                      2: #  Before run this script,
                      3: #   generate openXM.tar.gz
                      4: #   by the command
                      5: #    ~/bin/makeOpenXMDist
                      6: #     mount-unkei-dc1
                      7: #     bacupdir5b openXM
                      8: #   Next, extract all files:
                      9: #   cd /fuji2/dist
                     10: #   tar xzvf /fuji2/OX/openXM.tar.gz
                     11: #   cd /fuji2/dist/openXM
                     12: #   ./misc/clean-for-binary-dist
                     13: #
                     14: pwd
                     15: if ( `pwd` != "/fuji2/dist/openXM" ) then
                     16:     echo "Invalid directory to run clean-for-binary-dist"
                     17:     exit
                     18: endif
                     19:
                     20: echo "This is clean-for-binary-dist to generate openXM, sm1 + oxasir."
                     21: /bin/rm -f this-is-for-cpu-os.txt
                     22: echo -n "CPU=" >this-is-for-cpu-os.txt
                     23: uname -m >this-is-for-cpu-os.txt
                     24: echo -n "OS=" >>this-is-for-cpu-os.txt
                     25: uname -s >>this-is-for-cpu-os.txt
                     26: echo -n "Version=" >>this-is-for-cpu-os.txt
                     27: uname -r >>this-is-for-cpu-os.txt
                     28: echo "Compiled without -static option." >>this-is-for-cpu-os.txt
                     29:
                     30: pwd
                     31: echo "Cleaning src directories OK?"
                     32: sleep 10
                     33: /bin/rm -rf src/Ti*
                     34: /bin/rm -rf src/phc
                     35: /bin/rm -rf src/gnuplot*
                     36: /bin/rm -rf src/k097
                     37: /bin/rm -rf install.txt
                     38:
                     39: cp misc/readme.binary-dist .
                     40: ## /bin/rm -rf misc
                     41: pushd src
                     42: tar czvf ../../kan96.tgz kan96xx
                     43: popd
                     44:
                     45: ## Generate documents SSkan and copy sm1 to openXM/bin
                     46: pushd src/SSkan
                     47: make
                     48: pushd Doc
                     49: make
                     50: popd
                     51: make install-openXM-bin
                     52: popd
                     53:
                     54: ## Generate ox, oxlog, ox_sm1 and copy them to openXM/bin
                     55: ## Generate also symbolic links in openXM/lib/sm1/bin
                     56: pushd src/kxx
                     57: make
                     58: make install
                     59: popd
                     60:
                     61: ## Clean src/kan96xx and src/kxx
                     62: echo "Cleaning src/kan96xx and src/kxx"
                     63: sleep 10
                     64: /bin/rm -rf src/kan96xx/Kan
                     65: /bin/rm -rf src/kan96xx/Doc/Old src/kan96xx/Doc/checkData src/kan96xx/Doc/*~
                     66: /bin/rm -rf src/kan96xx/gc*
                     67: /bin/rm -rf src/kan96xx/gmp*
                     68: /bin/rm -rf src/kan96xx/plugin
                     69: /bin/rm -rf src/kan96xx/Makefile
                     70: /bin/rm -rf src/kan96xx/cleanForDist
                     71: /bin/rm -rf src/kan96xx/makeDist
                     72: /bin/rm -rf src/kan96xx/makeBinary
                     73: /bin/rm -rf src/kxx
                     74:
                     75: /bin/rm -rf bin/asir
                     76: /bin/rm -rf bin/phc
                     77: /bin/rm -rf bin/lin_phcv2p
                     78: /bin/rm -rf lib/k097
                     79: /bin/rm -rf lib/sm1/ole
                     80: /bin/rm -rf lib/asir/ox_asir.19990908.linux
                     81:
                     82:
                     83: cd ..
                     84: tar czvf sm1.binary.$OSTYPE.$HOSTTYPE.tar.gz openXM
                     85: echo "Done."
                     86:
                     87:
                     88:
                     89:
                     90:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>