New script to create a domain directory tree

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@14704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-10-10 17:34:26 +00:00
parent 3253c72656
commit 6f46969179

56
create_domain_dir_tree.sh Executable file
View file

@ -0,0 +1,56 @@
#!/bin/sh
# create_domain_dir_tree.sh
#
# Copyright (C) 2002 Free Software Foundation, Inc.
#
# Author: Nicola Pero <n.pero@mi.flashnet.it>
# Date: October 2002
#
# This file is part of the GNUstep Makefile Package.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# You should have received a copy of the GNU General Public
# License along with this library; see the file COPYING.LIB.
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Take a single argument - a directory name -, and create the GNUstep
# domain directory structure inside the directory.
# It is automatically called with argument ${GNUSTEP_SYSTEM_ROOT} when
# gnustep-make is installed; you can call it with argument
# ${GNUSTEP_LOCAL_ROOT} or ${GNUSTEP_NETWORK_ROOT} (or your own
# GNUstep user dir) if you need to create manually a GNUstep domain
# directory tree in there.
if [ -z "$*" ]; then
echo "No arguments specified" >&2
exit 0
fi
mydir=$(dirname "$0")
basepath="$1"
${mydir}/mkinstalldirs "$basepath" \
"$basepath"/Applications \
"$basepath"/Libraries/${GNUSTEP_TARGET_LDIR} \
"$basepath"/Libraries/Resources \
"$basepath"/Libraries/Java \
"$basepath"/Headers/${GNUSTEP_TARGET_DIR} \
"$basepath"/Tools/${GNUSTEP_TARGET_LDIR} \
"$basepath"/Tools/Resources \
"$basepath"/Tools/Java \
"$basepath"/Library/Bundles \
"$basepath"/Library/Colors \
"$basepath"/Library/Frameworks \
"$basepath"/Library/PostScript \
"$basepath"/Library/Services \
"$basepath"/Documentation/Developer \
"$basepath"/Documentation/User \
"$basepath"/Documentation/info \
"$basepath"/Documentation/man \
"$basepath"/Developer/Palettes