2 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # Filename: scripts/Create-Links
6 # Copyright (C) 2006 - 2008 The OpenSDE Project
7 # Copyright (C) 2004 - 2006 The T2 SDE Project
8 # Copyright (C) 1998 - 2003 Clifford Wolf
10 # More information can be found in the files COPYING and README.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; version 2 of the License. A copy of the
15 # GNU General Public License can be found in the file COPYING.
16 # --- SDE-COPYRIGHT-NOTE-END ---
18 sderootdirs
="scripts bin etc lib misc doc src package architecture target"
26 linkconfig
=config
; shift ;;
28 linkbuild
=build
; shift ;;
31 echo "Usage: ./scripts/Create-Links [ -config ] [ -build ] target-dir"
39 if [ -z "$1" -o "$#" != 1 -o ! -d "$1" ] ; then
43 for x
in $sderootdirs download
$linkconfig $linkbuild; do
45 [ -e $1/$x ] ||
ln -vs `pwd`/$x $1/$x
48 if [ ! -e $1/backup
-a -e `pwd`/backup
] ; then
49 ln -vs `pwd`/backup
$1/backup