From e196e526408d478cac895f04917503706c469cf6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Feb 2011 13:18:43 +1100 Subject: s4-build: remove a bunch of unused build scripts these were leftover from the autoconf build Autobuild-User: Andrew Tridgell Autobuild-Date: Mon Feb 7 04:09:40 CET 2011 on sn-devel-104 --- source4/script/installdat.sh | 23 --------- source4/script/installdirs.sh | 17 ------- source4/script/installheader.pl | 109 ---------------------------------------- source4/script/installlib.sh | 32 ------------ source4/script/installman.sh | 30 ----------- source4/script/installpc.sh | 16 ------ source4/script/mkinstalldirs | 38 -------------- source4/script/revert.sh | 18 ------- source4/script/uninstalllib.sh | 35 ------------- source4/script/uninstallman.sh | 27 ---------- 10 files changed, 345 deletions(-) delete mode 100755 source4/script/installdat.sh delete mode 100755 source4/script/installdirs.sh delete mode 100755 source4/script/installheader.pl delete mode 100755 source4/script/installlib.sh delete mode 100755 source4/script/installman.sh delete mode 100755 source4/script/installpc.sh delete mode 100755 source4/script/mkinstalldirs delete mode 100755 source4/script/revert.sh delete mode 100755 source4/script/uninstalllib.sh delete mode 100755 source4/script/uninstallman.sh (limited to 'source4/script') diff --git a/source4/script/installdat.sh b/source4/script/installdat.sh deleted file mode 100755 index bea8ad891ac..00000000000 --- a/source4/script/installdat.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -#fist version March 2002, Herb Lewis - -DATDIR=$1 -SRCDIR=$2/ - -echo Installing dat files in $DATDIR - -for f in $SRCDIR/../codepages/*.dat; do - FNAME=$DATDIR/`basename $f` - echo $FNAME - cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? - chmod 0644 $FNAME -done - -cat << EOF -====================================================================== -The dat files have been installed. -====================================================================== -EOF - -exit 0 - diff --git a/source4/script/installdirs.sh b/source4/script/installdirs.sh deleted file mode 100755 index 9557b86d3bc..00000000000 --- a/source4/script/installdirs.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -while ( test -n "$1" ); do - if [ ! -d $1 ]; then - mkdir -p $1 - fi - - if [ ! -d $1 ]; then - echo Failed to make directory $1 - exit 1 - fi - - shift; -done - - - diff --git a/source4/script/installheader.pl b/source4/script/installheader.pl deleted file mode 100755 index 5be3434a5c2..00000000000 --- a/source4/script/installheader.pl +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/perl -# Copyright (C) 2006 Jelmer Vernooij -use strict; -use File::Basename; - -my $includedir = shift; - - -sub read_headermap($) -{ - my ($fn) = @_; - my %map = (); - my $ln = 0; - open(MAP, ") { - $ln++; - s/#.*$//g; - next if (/^\s*$/); - if (! /^(.*): (.*)$/) { - print STDERR "headermap.txt:$ln: Malformed line\n"; - next; - } - $map{$1} = $2; - } - - close(MAP); - - return %map; -} - -my %map = read_headermap("headermap.txt"); - -sub findmap($) -{ - $_ = shift; - s/^\.\///g; - - if (! -f $_ && -f "lib/$_") { $_ = "lib/$_"; } - - return $map{$_}; -} - -sub rewrite_include($$) -{ - my ($pos,$d) = @_; - - my $n = findmap($d); - return $n if $n; - return $d; -} - -sub install_header($$) -{ - my ($src,$dst) = @_; - - my $lineno = 0; - - open(IN, "<$src"); - open(OUT, ">$dst"); - - while () { - $lineno++; - die("Will not install autogenerated header $src") if (/This file was automatically generated by mkproto.pl. DO NOT EDIT/); - - if (/^#include \"(.*)\"/) { - print OUT "#include <" . rewrite_include("$src:$lineno", $1) . ">\n"; - } elsif (/^#if _SAMBA_BUILD_ == 4/) { - print OUT "#if 1\n"; - } else { - print OUT $_; - } - } - - close(OUT); - close(IN); -} - -foreach my $p (@ARGV) -{ - my $p2 = findmap($p); - unless ($p2) { - die("Unable to map $p"); - } - print "Installing $p as $includedir/$p2\n"; - - my $dirname = dirname($p2); - - if (! -d "$includedir/$dirname") { - mkdir("$includedir/$dirname", 0777); - } - - if ( -f "$includedir/$p2" ) { - unlink("$includedir/$p2.old"); - rename("$includedir/$p2", "$includedir/$p2.old"); - } - - install_header($p,"$includedir/$p2"); -} - -print < -# Created: 1993-05-16 -# Public domain - -errstatus=0 - -for file -do - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` - shift - - pathcomp= - for d - do - pathcomp="$pathcomp$d" - case "$pathcomp" in - -* ) pathcomp=./$pathcomp ;; - esac - - if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" 1>&2 - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - fi - fi - - pathcomp="$pathcomp/" - done -done - -exit $errstatus - -# mkinstalldirs ends here diff --git a/source4/script/revert.sh b/source4/script/revert.sh deleted file mode 100755 index 8df5fd2fbde..00000000000 --- a/source4/script/revert.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -BINDIR=$1 -shift - -for p in $*; do - p2=`basename $p` - if [ -f $BINDIR/$p2.old ]; then - echo Restoring $BINDIR/$p2.old - mv $BINDIR/$p2 $BINDIR/$p2.new - mv $BINDIR/$p2.old $BINDIR/$p2 - rm -f $BINDIR/$p2.new - else - echo Not restoring $p - fi -done - -exit 0 - diff --git a/source4/script/uninstalllib.sh b/source4/script/uninstalllib.sh deleted file mode 100755 index 9c45b2c941c..00000000000 --- a/source4/script/uninstalllib.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# based on uninstallbin.sh -# 4 July 96 Dan.Shearer@UniSA.edu.au - -LIBDIR=$1 -shift - -if [ ! -d $LIBDIR ]; then - echo Directory $LIBDIR does not exist! - echo Do a "make installbin" or "make install" first. - exit 1 -fi - -for p in $*; do - p2=`basename $p` - if [ -f $LIBDIR/$p2 ]; then - echo Removing $LIBDIR/$p2 - rm -f $LIBDIR/$p2 - if [ -f $LIBDIR/$p2 ]; then - echo Cannot remove $LIBDIR/$p2 ... does $USER have privileges? - fi - fi -done - - -cat << EOF -====================================================================== -The shared libraries have been uninstalled. You may restore the libraries using -the command "make installlib" or "make install" to install binaries, -man pages, modules and shell scripts. You can restore a previous -version of the libraries (if there were any) using "make revert". -====================================================================== -EOF - -exit 0 diff --git a/source4/script/uninstallman.sh b/source4/script/uninstallman.sh deleted file mode 100755 index edc1c47e4df..00000000000 --- a/source4/script/uninstallman.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# 4 July 96 Dan.Shearer@UniSA.edu.au -# Updated for Samba4 by Jelmer Vernooij - -MANDIR=$1 -shift 1 -MANPAGES=$* - -for I in $MANPAGES -do - SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"` - FNAME=$MANDIR/man$SECTION/$I - if test -f $FNAME; then - echo Deleting $FNAME - rm -f $FNAME - test -f $FNAME && echo Cannot remove $FNAME... does $USER have privileges? - fi -done - -cat << EOF -====================================================================== -The man pages have been uninstalled. You may install them again using -the command "make installman" or make "install" to install binaries, -man pages and shell scripts. -====================================================================== -EOF -exit 0 -- cgit