changeset 18:b38744722d75

remove defunct c++ and perl code.
author Robert McIntyre <rlm@mit.edu>
date Wed, 09 Jan 2013 11:42:25 +0000
parents cb1a44d080db
children 4fbe69d24a9c
files src/Makefile src/hg-wrapper.cpp src/hg-wrapper.pl
diffstat 3 files changed, 0 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/src/Makefile	Wed Jan 09 11:41:55 2013 +0000
     1.2 +++ b/src/Makefile	Wed Jan 09 11:42:25 2013 +0000
     1.3 @@ -2,9 +2,3 @@
     1.4  	gcc -I/usr/include -lpipeline hg-wrapper.c -o hg-wrapper
     1.5  clean:
     1.6  	rm hg-wrapper
     1.7 -
     1.8 -
     1.9 -
    1.10 -# to build the incorrect cpp version.
    1.11 -#all:
    1.12 -#	g++ -I/usr/include hg-wrapper.cpp -o hg-wrapper
     2.1 --- a/src/hg-wrapper.cpp	Wed Jan 09 11:41:55 2013 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,17 +0,0 @@
     2.4 -#include <cstdlib>
     2.5 -#include <vector>
     2.6 -#include <string>
     2.7 -#include <unistd.h>
     2.8 -#include <boost/algorithm/string/join.hpp>
     2.9 -
    2.10 -/** This a simple wrapper script to call 
    2.11 -    mercurial as a semi-privleged user. */
    2.12 -
    2.13 -main( int argc, char ** argv){
    2.14 -  std::vector<std::string> input(argv, argv+argc);
    2.15 -  input[0] = std::string("hg");
    2.16 -  std::string command = boost::algorithm::join(input, " ");
    2.17 -  setreuid(geteuid(), geteuid());
    2.18 -  setregid(getegid(), getegid());
    2.19 -  return system(command.c_str());
    2.20 -}
     3.1 --- a/src/hg-wrapper.pl	Wed Jan 09 11:41:55 2013 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,7 +0,0 @@
     3.4 -#!/usr/bin/perl -wT
     3.5 -
     3.6 -$ENV{"PATH"} = "/usr/bin";
     3.7 -delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)};
     3.8 -
     3.9 -unshift(@ARGV, "hg");
    3.10 -exec(@ARGV);