This commit is contained in:
2025-04-10 21:32:39 +02:00
parent af5be2794d
commit a9203e515d
3 changed files with 6 additions and 6 deletions

6
createapp.pl Normal file → Executable file
View File

@@ -31,11 +31,11 @@ if ( $name !~ /^[a-z]*$/ ) {
exit 0;
}
print "Wohin soll das neue Programm kopiert werden ( $ENV{'HOME'}/mojo ): ";
print "Wohin soll das neue Programm kopiert werden ( $ENV{'HOME'}/git ): ";
chomp( my $wohin = <ARGV> );
if ( $wohin eq "" ) {
$wohin = "$ENV{'HOME'}/mojo";
$wohin = "$ENV{'HOME'}/git";
};
if ( !-d $wohin ) {
print STDOUT "Ordner existiert nicht, Programm wird geschlossen\n";
@@ -120,7 +120,7 @@ chdir "$wohin/$lname/";
system( "git init" );
system( "git add ." );
system( "git commit -m 'initialer Commit'" );
system( "git remote add origin git\@git:WebApps/$uname.git" );
system( "git remote add origin git\@gitea.opawilly.goip.de:steffen/$uname.git" );
system( "$wohin/$lname/deb/pbuild.sh" ) == 0
or die "Bash Script failed";