changeset 14:ac1ca422bd54

saving progress.
author Robert McIntyre <rlm@mit.edu>
date Wed, 09 Jan 2013 10:59:43 +0000
parents dcdeabe9e903
children 48c7c2099978
files defaults/Makefile src/pkg.pl
diffstat 2 files changed, 6 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/defaults/Makefile	Wed Jan 09 07:31:19 2013 +0000
     1.2 +++ b/defaults/Makefile	Wed Jan 09 10:59:43 2013 +0000
     1.3 @@ -1,7 +1,10 @@
     1.4 -#all:
     1.5 -#	g++ -I/usr/include hg-wrapper.cpp -o hg-wrapper
     1.6 -
     1.7  all:
     1.8  	gcc -I/usr/include -lpipeline hg-wrapper.c -o hg-wrapper
     1.9  clean:
    1.10  	rm hg-wrapper
    1.11 +
    1.12 +
    1.13 +
    1.14 +# to build the incorrect cpp version.
    1.15 +#all:
    1.16 +#	g++ -I/usr/include hg-wrapper.cpp -o hg-wrapper
     2.1 --- a/src/pkg.pl	Wed Jan 09 07:31:19 2013 +0000
     2.2 +++ b/src/pkg.pl	Wed Jan 09 10:59:43 2013 +0000
     2.3 @@ -82,20 +82,8 @@
     2.4    (install, "-g", "hg-wheel", "-o", "hg-committer",
     2.5     "-m", "6111", "/pkg/defaults/.hg-wrapper", $pkg_home);
     2.6  
     2.7 -$pkg_hgrc = "[ui]\n\
     2.8 -username = $pkg_name\n\
     2.9 -[extensions]\n\
    2.10 -hgext.purge =\n";
    2.11 -
    2.12 -$pkg_hgrc_filename = "$pkg_home/.hgrc";
    2.13 -
    2.14 -@pkg_set_hgrc_user_cmd = 
    2.15 -  ("chown", "$pkg_name:$pkg_name", $pkg_hgrc_filename);
    2.16 -
    2.17 -
    2.18  sub execute{print "\t@_\n"; system(@_) and die $!;}
    2.19  
    2.20 -
    2.21  #determine if the user already exists:
    2.22  `id $pkg_name 2>/dev/null`;
    2.23  if (!$?){
    2.24 @@ -118,15 +106,5 @@
    2.25  execute(@pkg_link_bashrc_cmd);
    2.26  execute(@pkg_copy_hg_wrapper_cmd);
    2.27  
    2.28 -# print "Create ~/.hgrc\n";
    2.29 -# open(HGRC, ">$pkg_hgrc_filename") or die $!;
    2.30 -# select HGRC;
    2.31 -# print $pkg_hgrc;
    2.32 -# close(HGRC);
    2.33 -
    2.34 -# select(STDOUT);
    2.35 -# print "Set permissions on ~/.hgrc.\n";
    2.36 -# execute(@pkg_set_hgrc_user_cmd);
    2.37 -
    2.38  print "Change user.\n";
    2.39  execute(@pkg_switch_cmd);