From ffcf6bc9a1f64f02c51c6d0f01bf75b4d62981c5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 15 Feb 2012 10:03:54 +0000 Subject: [PATCH] scstadmin: Replace scstadmin/scstadmin by a soft link if it is a regular file. This is a workaround for a bug in the "Download tarball" functionality of the SourceForge website (merge r4129 from trunk). git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4130 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scstadmin/Makefile b/scstadmin/Makefile index 798278e9f..f80261744 100644 --- a/scstadmin/Makefile +++ b/scstadmin/Makefile @@ -1,4 +1,8 @@ -SCSTADMIN_DIR = scstadmin +SCSTADMIN_DIR = $(shell if [ ! -h scstadmin ]; then \ + rm -f scstadmin; \ + ln -s scstadmin.sysfs scstadmin; \ + fi; \ + echo scstadmin) MANDIR := $(DESTDIR)/usr/local/man INITDIR := $(shell if [ -f /etc/slackware-version ]; then \