summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/script/installdat.sh23
-rwxr-xr-xsource4/script/installdirs.sh17
-rwxr-xr-xsource4/script/installheader.pl109
-rwxr-xr-xsource4/script/installlib.sh32
-rwxr-xr-xsource4/script/installman.sh30
-rwxr-xr-xsource4/script/installpc.sh16
-rwxr-xr-xsource4/script/mkinstalldirs38
-rwxr-xr-xsource4/script/revert.sh18
-rwxr-xr-xsource4/script/uninstalllib.sh35
-rwxr-xr-xsource4/script/uninstallman.sh27
10 files changed, 0 insertions, 345 deletions
diff --git a/source4/script/installdat.sh b/source4/script/installdat.sh
deleted file mode 100755
index bea8ad891a..0000000000
--- 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 9557b86d3b..0000000000
--- 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 5be3434a5c..0000000000
--- 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, "<headermap.txt");
- while(<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 (<IN>) {
- $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 <<EOF;
-======================================================================
-The headers are installed. You may restore the old headers (if there
-were any) using the command "make revert". You may uninstall the headers
-using the command "make uninstallheader" or "make uninstall" to uninstall
-binaries, man pages and shell scripts.
-======================================================================
-EOF
-
-exit 0;
diff --git a/source4/script/installlib.sh b/source4/script/installlib.sh
deleted file mode 100755
index cc9ff0b9ea..0000000000
--- a/source4/script/installlib.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-LIBDIR=$1
-SHLIBEXT=$2
-
-shift
-shift
-
-for p in $*; do
- p2=`basename $p`
- lnname=`echo $p2 | sed -e "s/\.$SHLIBEXT.*/.$SHLIBEXT/"`
- echo Installing $p as $LIBDIR/$p2
- if [ -f $LIBDIR/$p2 ]; then
- rm -f $LIBDIR/$p2.old
- mv $LIBDIR/$p2 $LIBDIR/$p2.old
- fi
- cp $p $LIBDIR/
- if [ $p2 != $lnname ]; then
- ln -sf $p2 $LIBDIR/$lnname
- fi
-done
-
-cat << EOF
-======================================================================
-The shared libraries are installed. You may restore the old libraries (if there
-were any) using the command "make revert". You may uninstall the libraries
-using the command "make uninstalllib" or "make uninstall" to uninstall
-binaries, man pages and shell scripts.
-======================================================================
-EOF
-
-exit 0
diff --git a/source4/script/installman.sh b/source4/script/installman.sh
deleted file mode 100755
index 3350eb87bc..0000000000
--- a/source4/script/installman.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-MANDIR=$1
-shift 1
-MANPAGES=$*
-
-for I in $MANPAGES
-do
- SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"`
- DIR="$MANDIR/man$SECTION"
- if [ ! -d "$DIR" ]
- then
- mkdir "$DIR"
- fi
-
- BASE=`basename $I`
-
- echo "Installing manpage \"$BASE\" in $DIR"
- cp $I $DIR
-done
-
-cat << EOF
-======================================================================
-The man pages have been installed. You may uninstall them using the command
-the command "make uninstallman" or make "uninstall" to uninstall binaries,
-man pages and shell scripts.
-======================================================================
-EOF
-
-exit 0
diff --git a/source4/script/installpc.sh b/source4/script/installpc.sh
deleted file mode 100755
index 81ca2f8145..0000000000
--- a/source4/script/installpc.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-# install miscellaneous files
-
-SRCDIR="$1"
-PKGCONFIGDIR="$2"
-shift
-shift
-
-cd $SRCDIR || exit 1
-
-for I in $*
-do
- cp $I $PKGCONFIGDIR
-done
-
-exit 0
diff --git a/source4/script/mkinstalldirs b/source4/script/mkinstalldirs
deleted file mode 100755
index f945dbf2bc..0000000000
--- a/source4/script/mkinstalldirs
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/sh
-# mkinstalldirs --- make directory hierarchy
-# Author: Noah Friedman <friedman@prep.ai.mit.edu>
-# 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 8df5fd2fbd..0000000000
--- 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 9c45b2c941..0000000000
--- 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 edc1c47e4d..0000000000
--- 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