Ticket #9433: 9433_hg_script.sh

File 9433_hg_script.sh, 675 bytes (added by jdemeyer, 9 years ago)
Line 
1#!/usr/bin/env bash
2
3# WARNING: this must be run from SAGE_ROOT
4
5hg()
6{
7        ${HG:-sage -hg} "$@"
8}
9
10set -e
11
12# Only for merger script
13if [ -d SCRIPTS ]; then
14        export SAGE_ROOT=`pwd`
15        mkdir ipython
16        ( cd SCRIPTS/ipython && cp -p *.py ipythonrc* "$SAGE_ROOT/ipython" )
17        ( cd SCRIPTS && cp sage-spkg-install spkg-install )
18fi
19
20touch .hgtags
21hg init .
22hg add .hgignore .hgtags COPYING.txt README.txt Makefile sage
23( cd ipython && hg add *.py ipythonrc* )
24( cd spkg && hg add README.txt gen_html install pipestatus root-spkg-install )
25( cd spkg/standard && hg add README.txt deps libdist_filelist newest_version )
26rm -f sage-README-osx.txt
27hg commit -m 'initialization of repository'