#! /bin/sh BASE_DIR="/usr/share/lliurex/lliurex-live-builder" for d in binary-hooks chroot-hooks bootstrap-copy ; do for l in $(find "$BASE_DIR/lists" -xtype f -printf "%f\n%f-extended\n") ; do mkdir -p "${BASE_DIR}/${d}.${l}" DIR_LIST="$(cd ${BASE_DIR}/${d}; find ./ -mindepth 1 -xtype d |sort -r)" FILE_LIST="$(cd ${BASE_DIR}/${d}; find ./ -mindepth 1 -xtype f)" for f in ${DIR_LIST}; do mkdir -p "${BASE_DIR}/${d}.${l}/$f" done for f in ${FILE_LIST}; do # copy files instead of making links # because some live helper hooks require real files to work (cd ${BASE_DIR}/${d}.${l} ; cp -f ${BASE_DIR}/${d}/${f} ${f}) done done done #DEBHELPER#