1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s4-build: remove a bunch of unused build scripts

these were leftover from the autoconf build

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Feb  7 04:09:40 CET 2011 on sn-devel-104
This commit is contained in:
Andrew Tridgell 2011-02-07 13:18:43 +11:00
parent 1867a6033c
commit e196e52640
10 changed files with 0 additions and 345 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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