-dnl $Id: configure.in,v 1.179.2.3.2.37.2.2 2004-10-27 14:20:38 bfernhomberg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.37.2.3 2004-11-09 23:07:03 didg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
contrib/shell_utils/apple_rm
contrib/shell_utils/asip-status.pl
contrib/shell_utils/cleanappledouble.pl
- contrib/shell_utils/netatalkshorternamelinks.pl
contrib/timelord/Makefile
contrib/a2boot/Makefile
distrib/Makefile
+++ /dev/null
-#!@PERL@
-#
-# $Id: netatalkshorternamelinks.pl.in,v 1.1 2002-01-17 05:59:25 srittau Exp $
-#
-# (c) 2000 Christian Wolff, scarabaeus@scarabaeus.org
-# quick hack to create symbolic links for files with names over 31 chars long
-#
-
-$searchpath='/data/mp3/';
-$destpath='/data/mac_mp3/';
-
-# only if you dare!
-`rm -rf ${destpath}*`;
-foreach $f (`find $searchpath -name '*.mp3'`) {
- chomp $f;
- $f=~s/^$searchpath//;
- if ($f=~/^(.*)\/(.*)$/) {
- ($path,$file)=($1,$2);
- } else {
- ($path,$file)=('',$f);
- }
- $shortpath='';
- for $splitpath (split /\//,$path) {
- if (length $splitpath > 31) {
- # keep the last 2 chars of the directory name
- $splitpath=substr($splitpath,0,29).substr($splitpath,-2,2);
- }
- $shortpath.="${splitpath}/";
- mkdir $destpath.$shortpath,0755;
- }
- $shortfile=$file;
- if (length $file > 31) {
- # keep the extension of 4 chars
- $shortfile=substr($file,0,27).substr($file,-4,4);
- }
- `ln -sf ${searchpath}${f} ${destpath}${shortpath}${shortfile}`;
-}
-