#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : initProjectFromSvn2 # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== racine="/etc/darksrv" . $racine/lib-sh/shTools shLog="$0($$):" shDebugEnable="1" shDebug "$*" #$(shInclude $racine/firewall/lib-sh/firewall) projectName="$1" projectUrl="$2" # initProjectFromGitHub miniupnp https://github.com/miniupnp/miniupnp.git shDebug " init from github project, [name:$projectName] [url source:$projectUrl]" chrootDir="/srv/httpd" pkgSourceDirectory="/var/www/darkweb.fr/https/pkg" pkgApacheConfDir="$pkgSourceDirectory/config.chance" pkgProjectDir="$pkgSourceDirectory/$projectName" pkgGitDirectory="$pkgSourceDirectory/git" pkgGitRepository="$pkgGitDirectory/${projectName}.git" cd "$pkgGitDirectory" if [ -d "$pkgGitRepository" ];then echo "reset repository?";read answer; if [ "$answer" = "y" ];then rm -R "$pkgGitRepository" else exit 0 fi fi #mkdir -p "$pkgGitRepository" cd "$pkgGitRepository/.." pwd echo "git svn clone "$projectUrl" -T trunk -b branches -t tags" git svn clone "$projectUrl" -T trunk -b branches -t tags --no-minimize-url mv "$projectName" "${projectName}".git