From 8e30e650242713ada766c8b12b5f95dc57da7446 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 23 Jun 2007 18:46:52 +0000 Subject: [PATCH] * reimplemented automake.conf to create share/automake in a cleaner and safer way git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21417 10447126-35f2-4685-b0cf-6dd780d3921f --- base/automake/automake.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/base/automake/automake.conf b/base/automake/automake.conf index f009bb58b..45aaae21d 100644 --- a/base/automake/automake.conf +++ b/base/automake/automake.conf @@ -3,8 +3,6 @@ # # Filename: package/.../automake/automake.conf # Copyright (C) 2007 The OpenSDE Project -# Copyright (C) 2004 - 2006 The T2 SDE Project -# Copyright (C) 1998 - 2003 Clifford Wolf # # More information can be found in the files COPYING and README. # @@ -14,4 +12,8 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- -hook_add postmake 5 "rm -rf $root$datadir/automake ; ln -s automake-${ver} $root$datadir/automake" +automake_symlink() { + local v=$( echo $ver | cut -d'.' -f'1-2' ) + ln -snf automake-$v $root$datadir/automake +} +hook_add postmake 5 "automake_symlink"