Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * Crea los directorios necesarios
- *
- * @cons CREATESERVICE
- *
- * @param service devuelve el nombre del servicio a crear.
- *
- */
- alias CREATESERVICE {
- if (!$1) {
- error No ha especificado el nombre de ningún servicio.
- }
- alias SERVICE_NAME { return $1 }
- mkdir $+($MAIN_FOLDER,\Bots\ $+ $SERVICE_NAME $+ \)
- copy -o $+(MAIN_FOLDER,\src\templates\mIRC) $+($MAIN_FOLDER,Bots\ $+ $SERVICE_NAME $+ \)
- if ($exists($+($MAIN_FOLDER,\Bots\ $+ SERVICE_NAME $+ \mirc.exe) == $false) {
- error No existe el archivo mIRC.exe en $qt($+($MAIN_FOLDER,\Bots\ $+ $SERVICE_NAME $+ \)) Compruebe que la ruta es correcta.
- }
- mkdir $+($MAIN_FOLDER,\Data\ $+ $SERVICE_NAME $+ \)
- mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \)
- mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \modules)
- mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \public)
- mkdir $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \Documentacion\)
- copy -o $+($MAIN_FOLDER,\src\templates\CHANGELOG.md) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \CHANGELOG.md)
- copy -o $+($MAIN_FOLDER,\src\templates\README.md) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \README.md)
- ;copy -o $+($MAIN_FOLDER,\src\templates\loader.mRC) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \loader.mRC)
- copy -o $+($MAIN_FOLDER,\src\templates\tools.mRC) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \tools.mRC)
- copy -o $+($MAIN_FOLDER,\src\templates\definitions.mRC) $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \definitions.mRC)
- echo -s Plantilla copiada correctamente.
- echo -s
- echo -s Estructura para $SERVICE_NAME
- echo -s
- echo -s $+($MAIN_FOLDER,\Bots\ $+ $SERVICE_NAME $+ \)
- echo -s $+($MAIN_FOLDER,\Data\ $+ $SERVICE_NAME $+ \)
- echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \)
- echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \modules\)
- echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \public\)
- echo -s $+($MAIN_FOLDER,\src\ $+ $SERVICE_NAME $+ \Documentacion\)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement