| Last change
 on this file since 493 was             414, checked in by Herwig Bauernfeind, 16 years ago | 
        
          | 
Samba 3.5.0: Initial import
 | 
        
          | File size:
            780 bytes | 
      
      
| Line |  | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | LIBDIR=$1 | 
|---|
| 4 | SHLIBEXT=$2 | 
|---|
| 5 |  | 
|---|
| 6 | shift | 
|---|
| 7 | shift | 
|---|
| 8 |  | 
|---|
| 9 | for p in $*; do | 
|---|
| 10 | p2=`basename $p` | 
|---|
| 11 | lnname=`echo $p2 | sed -e "s/\.$SHLIBEXT.*/.$SHLIBEXT/"` | 
|---|
| 12 | echo Installing $p as $LIBDIR/$p2 | 
|---|
| 13 | if [ -f $LIBDIR/$p2 ]; then | 
|---|
| 14 | rm -f $LIBDIR/$p2.old | 
|---|
| 15 | mv $LIBDIR/$p2 $LIBDIR/$p2.old | 
|---|
| 16 | fi | 
|---|
| 17 | cp $p $LIBDIR/ | 
|---|
| 18 | if [ $p2 != $lnname ]; then | 
|---|
| 19 | ln -sf $p2 $LIBDIR/$lnname | 
|---|
| 20 | fi | 
|---|
| 21 | done | 
|---|
| 22 |  | 
|---|
| 23 | cat << EOF | 
|---|
| 24 | ====================================================================== | 
|---|
| 25 | The shared libraries are installed. You may restore the old libraries (if there | 
|---|
| 26 | were any) using the command "make revert". You may uninstall the libraries | 
|---|
| 27 | using the command "make uninstalllib" or "make uninstall" to uninstall | 
|---|
| 28 | binaries, man pages and shell scripts. | 
|---|
| 29 | ====================================================================== | 
|---|
| 30 | EOF | 
|---|
| 31 |  | 
|---|
| 32 | exit 0 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.