# --- 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 - 2017 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # 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 check_usrlocal=0 makeopt= makeinstopt= hook_add inmake 5 "main_dt"