Fix can't find file for repository
This commit is contained in:
parent
9253a4b974
commit
56c9740a35
1 changed files with 1 additions and 10 deletions
11
nb_create.sh
11
nb_create.sh
|
|
@ -27,16 +27,14 @@ this_script=$(basename -- $0)
|
||||||
USE_PROGRAMME=git
|
USE_PROGRAMME=git
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
Usage: $this_script [OPTIONS] params
|
Usage: $this_script [OPTIONS] params
|
||||||
|
|
||||||
Convenience script to create C/C++ NetBeans projects.
|
Convenience script to create C/C++ NetBeans projects.
|
||||||
Create a generic NetBeans project from a Git repo.
|
Create a generic NetBeans project from a Git repo.
|
||||||
Project name, file containing main and a Git repo
|
Project name, file containing main and a Git repo
|
||||||
can be specified using command line options, or
|
can be specified using command line options, or
|
||||||
defaults can be used.
|
defaults can be used.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-d [--debug]
|
-d [--debug]
|
||||||
Add extra debugging infos
|
Add extra debugging infos
|
||||||
|
|
@ -51,7 +49,6 @@ Options:
|
||||||
-r [--repo] <git_repo>
|
-r [--repo] <git_repo>
|
||||||
The Git repo containing the NetBeans generic C/C++ project
|
The Git repo containing the NetBeans generic C/C++ project
|
||||||
Default: /home/benn/share/home/repo/netbeans_proj/netbeans_generic.git
|
Default: /home/benn/share/home/repo/netbeans_proj/netbeans_generic.git
|
||||||
|
|
||||||
Licence:
|
Licence:
|
||||||
$this_script Copyright (C) 2025 Benny Lyons.
|
$this_script Copyright (C) 2025 Benny Lyons.
|
||||||
GNU GPL2 or later; see LICENCE distributed with this file for more details.
|
GNU GPL2 or later; see LICENCE distributed with this file for more details.
|
||||||
|
|
@ -161,12 +158,6 @@ main()
|
||||||
else
|
else
|
||||||
REPO="$OPT_REPO"
|
REPO="$OPT_REPO"
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$REPO" ]; then
|
|
||||||
echo "ERROR: can't find: "$REPO
|
|
||||||
echo "Require a valid Git repository with a NetBeans project"
|
|
||||||
echo "Use -r <path/to/valid/NB/git/repo to speicify one"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue