You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.4 KiB

# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../00-dirtree/00-dirtree.conf
# 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.
#
# This program 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
main_dt() {
echo -n "Change to sysroot directory ... "
cd $sysroot/ ; echo 'done'
while read a b c ; do
if [ "$a" = "chmod" -o "$a" = "chown" ] ; then
echo "Running $a ($b) on $c ..."
$a "$b" "$sysroot/$c"
elif [ "$a" -a "$a" != "#" ] ; then
if [ -e "$sysroot/$b" ] ; then
echo "Exists already: $b."
elif [ "$a" = "m" ] ; then
echo "Create directory $b ..."
mkdir -p "$sysroot/$b"
elif [ "$a" = "l" ] ; then
echo "Create symlink $b ($c) ..."
ln -fsn "$c" "$sysroot/$b"
else
echo "Syntax Error: $a $b $c" ; false
fi
add_flist "$sysroot/$b"
fi
done < <(
cat $confdir/data.txt
if [[ $libdir = *lib64 ]]; then
echo "m lib64"
echo "m usr/lib64"
echo "m usr/local/lib64"
fi
)
}
srctar=none
createprefix=0
createdocs=0
custmain="main_dt"
check_usrlocal=0