From: Roland Häder Date: Mon, 22 Aug 2016 07:45:01 +0000 (+0200) Subject: Ignored genfiles.properties + added new script: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53da0dfd7f18b21cce8f022610b30cbac1388746;p=jprojects-scripts.git Ignored genfiles.properties + added new script: Signed-off-by: Roland Haeder --- diff --git a/.gitignore b/.gitignore index c5bf316..93a93d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /nbproject/private/ +/nbproject/genfiles.properties /nbproject/*~ /manifest.mf /build/ diff --git a/rm-jprojects.sh b/rm-jprojects.sh new file mode 100644 index 0000000..3614a68 --- /dev/null +++ b/rm-jprojects.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +. ./.jprojects.sh || exit 255 + +if [ -z "$1" ] +then + echo "Usage $0 " + exit 1 +fi + +for project in ${LIST}; do + if [ "${project}" = "jprojects-scripts" ] + then + echo "$0: Skipping jprojects-scripts ..." + continue + elif [ ! -d "${JPROJECTS_HOME}/${project}" ] + then + echo "$0: Project '${project}' does not exist." + continue + fi + + cd "${JPROJECTS_HOME}/${project}" || exit 255 + + if [ -d "$1" ] + then + git rm -rf "$1" + elif [ -f "$1" ] + then + git rm -f "$1" + else + echo "$0: File/directory '$1' does not exist in '${project}." + fi +done + +echo "$0: All done." +exit 0