Hash :
01439833
Author :
Thomas de Grivel
Date :
2019-10-06T16:55:46
#!/bin/sh
set -e
NAME="$1"
mkdir -p "$NAME"
cd "$NAME"
DIR="$PWD"
cd "$(dirname "$0")/../../rol"
ROL_DIR="$PWD"
VARS=""
VARS="$VARS -e s/@{NAME}/$NAME/g"
VARS="$VARS -e s/@{ROL_DIR}/$ROL_DIR/g"
cd "$(dirname "$0")/../skel"
find | while read SKEL; do
if [ -d "$SKEL" ]; then
echo "D $SKEL"
mkdir "$DIR/$SKEL"
elif [ -f "$SKEL" ]; then
echo "F $SKEL"
sed $VARS