forked from geoserver/geofence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
createGitIgnore
executable file
·42 lines (35 loc) · 958 Bytes
/
createGitIgnore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
OUTFILE=gitignore
cat >$OUTFILE <<EOF
##
## This file has been automatically generated.
## Any edit to this file will be lost on next update.
## If you need to add static paths to the ignore list, please edit the createGitIgnore script.
##
## - ETj
nb*.xml
.classpath
.project
.settings
*~
src/gui/core/plugin/mapsui/gwt-unitCache/
src/gui/core/plugin/mapsui/war/
src/gui/core/plugin/userui/gwt-unitCache/
src/gui/core/plugin/userui/war/
src/gui/web/gwt-unitCache/
src/gui/web/war/WEB-INF/deploy/
src/gui/web/war/WEB-INF/classes/
src/gui/web/war/WEB-INF/lib/
src/gui/web/war/geofence/
src/geoserver21x/web-app/src/main/webapp/data/
src/geoserver22x/web-app/src/main/webapp/data/
EOF
for pom in $(find -name "pom.xml" | sort)
do
path=${pom%*pom.xml}
path=${path#\./*}
echo ${path}target >>$OUTFILE
done
echo New file $OUTFILE has been created. You may now want to replace your original .gitignore file.
echo mv $OUTFILE .gitignore
echo