# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1280338635 25200
# Node ID 1c72aa2da4f566a1979e407619adb615b2629f50
# Parent 6f0d86da31580df5637e6da330f618766741051c
#9433: put more files under revision control
diff r 6f0d86da3158 r 1c72aa2da4f5 sagemake_devel_packages
a

b

rm sage*~ 
142  142  
143  143  cp pr sage* .hg* ipy_profile_sage.py $SCRIPTS/ 
144  144  cp p $SAGE_ROOT/sagepython $SCRIPTS/ 
145   cp p $SAGE_ROOT/*.txt $SCRIPTS/ 
 145  cp p $SAGE_ROOT/COPYING.txt $SCRIPTS/ 
 146  cp p $SAGE_ROOT/README.txt $SCRIPTS/ 
146  147  cp pr $SAGE_ROOT/ipython $SCRIPTS/ 
147  148  cp p $SAGE_ROOT/spkg/install $SCRIPTS/ 
148  149  cp p $SAGE_ROOT/local/bin/sagespkginstall $SCRIPTS/spkginstall 
… 
… 
if [ ! f $PKG/sage_scripts$SAGE_VERSIO 
160  161  echo "The package sage_scripts$SAGE_VERSION.spkg wasn't created." 
161  162  exit 1 
162  163  fi 
 164  
 165  # SAGE ROOT PACKAGE: don't make spkg file, just tag it with the new version. 
 166  
 167  cd $SAGE_ROOT 
 168  
 169  #./sagepush 
 170  hg diff 
 171  hg status 
 172  hg tag "$SAGE_VERSION" 
 173  hg commit m "$SAGE_VERSION" 
 174  
 175  if [ $? ne 0 ]; then 
 176  echo "Error pushing sage root repository." 
 177  exit 1 
 178  fi 
diff r 6f0d86da3158 r 1c72aa2da4f5 sagesdist
a

b

fi 
48  48  
49  49  mkdir $TMP 
50  50  
 51  # copy sage root repo over: 
51  52  cd $SAGE_ROOT 
52   cp LRp makefile *.txt *.sage sage ipythonrc $TMP/ 
 53  
 54  echo "Copying root repository..." 
 55  $SAGE_ROOT/sage hg clone pull . $TMP 
 56  rm $TMP/.hg/hgrc 
 57  echo "Done copying root repository." 
 58  
53  59  STD=standard 
54   mkdir $TMP/$PKGDIR 
55   mkdir $TMP/$PKGDIR/$STD 
56   cp p $PKGDIR/$STD/deps $TMP/$PKGDIR/$STD/ 
57   cp p $PKGDIR/$STD/libdist_filelist $TMP/$PKGDIR/$STD/ 
58   cp p $PKGDIR/$STD/newest_version $TMP/$PKGDIR/$STD/ 
59  60  cp pr $PKGDIR/base $TMP/$PKGDIR/ 
60   cp p $PKGDIR/install $TMP/$PKGDIR/ 
61   cp p $PKGDIR/pipestatus $TMP/$PKGDIR/ 
62   cp p $PKGDIR/update $TMP/$PKGDIR/ 
63   cp p $PKGDIR/gen_html $TMP/$PKGDIR/ 
64   cp p $PKGDIR/README.txt $TMP/$PKGDIR/ 
65  61  
66  62  $SAGE_ROOT/local/bin/sagemake_devel_packages $SAGE_VERSION $SAGE_ROOT $TMP/devel 
67  63  
… 
… 
fi 
73  69  cp $TMP/devel/*.spkg $SAGE_ROOT/$PKGDIR/$STD/ 
74  70  
75  71  cp p $PKGDIR/$STD/*.spkg $TMP/$PKGDIR/$STD/ 
76   cp p $PKGDIR/$STD/*.txt $TMP/$PKGDIR/$STD/ 
77  72  
78  73  cd $TMP/$PKGDIR/$STD 
79  74  rm rf doc* sage* extcode* sage_scripts* examples* 
diff r 6f0d86da3158 r 1c72aa2da4f5 sagespkginstall
a

b

fi 
25  25  # Finally, make sure some symbolic links exist. 
26  26  cd "$CUR" 
27  27  
28   # These are not part of the scripts repo and are 
29   # not under revision control, so they get wacked (at least 
30   # we do save the last versions in tmp, just in case). 
31   TMP="$SAGE_ROOT"/tmp/ 
32   if [ ! d "$TMP" ]; then 
33   mkdir "$TMP" 
34   fi 
35   cp "$SAGE_ROOT"/sagepython "$TMP"/ 
36   cp sagepython "$SAGE_ROOT"/ 
37   
38   cp "$SAGE_ROOT"/spkg/install "$TMP"/ 
39   cp install "$SAGE_ROOT"/spkg/ 
40   
41   cp "$SAGE_ROOT"/*.txt "$TMP"/ 
42   cp *.txt "$SAGE_ROOT"/ 
43   
44   rm rf "$TMP"/ipython 
45   cp r "$SAGE_ROOT"/ipython "$TMP"/ 
46   cp r ipython "$SAGE_ROOT/" 
47   
48  28  # I think these below should moved to the relevant spkg's. 
49  29  #  William Stein (20071004) 
50  30  cd "$TARGET" 
51  31  ln sf python sage.bin 
52  32  ln sf Singular sage_singular 
53  33  ln sf gp sage_pari 
54   
diff r 6f0d86da3158 r 1c72aa2da4f5 sageupgrade
a

b

if [ $? ne 0 ]; then 
32  32  exit 1 
33  33  fi 
34  34  
 35  # Finally check for the existence of the SAGE_ROOT mercurial 
 36  # repository. If it's not there, create it and also create the file 
 37  # .hgignore. See #9433. 
 38  hg="$SAGE_ROOT/sage hg" 
 39  
 40  create_repo() { 
 41  $hg init . 
 42  $hg add .hgignore COPYING.txt README.txt makefile sage sagepython 
 43  cd spkg 
 44  $hg add README.txt gen_html install pipestatus 
 45  cd standard 
 46  $hg add README.txt deps libdist_filelist newest_version 
 47  $hg commit message 'created SAGE_ROOT repo during upgrade' 
 48  } 
 49  
 50  cd $SAGE_ROOT 
 51  $hg branch &> /dev/null 
 52  if [ $? ne 0 ]; then 
 53  # repo does not exist, so create it, along with the file .hgignore. 
 54  echo "Creating toplevel Mercurial repository" 
 55  
 56  cat > .hgignore <<EOF 
 57  .BUILDSTART 
 58  sageREADMEosx.txt 
 59  ~$ 
 60  .hgignore~ 
 61  data 
 62  devel 
 63  dist 
 64  examples 
 65  .*\.log 
 66  ipython 
 67  local 
 68  tmp 
 69  spkg/base 
 70  spkg/build 
 71  spkg/installed 
 72  spkg/logs 
 73  spkg/standard/.*\.spkg 
 74  spkg/optional 
 75  EOF 
 76  
 77  create_repo 
 78  if [ $? ne 0 ]; then 
 79  echo "Error creating toplevel Mercurial repository" 
 80  exit 1 
 81  fi 
 82  fi 