Skip to content

Commit deeadc2

Browse files
committed
Prepare for public release
1 parent debc02a commit deeadc2

6 files changed

Lines changed: 22 additions & 17 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/source
1+
source/

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
# Manatee
2-
Manatee is an automatic .dcignore generator based on common .gitignore patterns found in https://github.com/github/gitignore
3-
4-
It's [lazy and ugly](https://youtu.be/YXm1ICO8Nec), yet functional.
1+
# dcignore
2+
This repository offers a default implementation of the .dcignore file and an automatic generator based on common .gitignore patterns found in https://github.com/github/gitignore
53

64
# Usage
7-
1. Run the script
8-
```bash
9-
./generate.sh
10-
```
11-
2. Read the results
12-
```bash
13-
cat ./output.gitignore
14-
```
15-
3. ???
16-
4. PROFIT
5+
1. Clone this repository
6+
2. Copy the `default.dcignore` file into the root of your project and rename it `.dcignore`
177

File renamed without changes.

generator/development.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# dcignore generator
2+
3+
## Usage
4+
1. Run the script to create an updated local version of the default.dcignore
5+
```bash
6+
./run.sh
7+
```
8+
2. Check the file content in the root directory of this repository
9+
```bash
10+
cat ../default.dcignore
11+
```
12+
3. Tinker with the script to fine-tune the generator or edit the output file directly
13+
4. Push the new version once pleased with the results

generate.sh renamed to generator/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SCRIPT_DIR=`dirname "$0"`
22
SOURCE_DIR="./source"
3-
OUTPUT="output.gitignore"
3+
OUTPUT="../default.dcignore"
44
REGEX="(^#.*)|((^|\/)\..*$)|(^.*\.[^\/]*$)"
55

66
cd "$SCRIPT_DIR"
@@ -38,5 +38,6 @@ while read -r file; do
3838
fi
3939
done <<< `find $SOURCE_DIR -name '*.gitignore'`
4040

41-
echo "Parsing completed. Check '$SCRIPT_DIR/$OUTPUT' file for results."
41+
cd ..
42+
echo "Parsing completed. Check '`pwd`/`basename $OUTPUT`' file for results."
4243
exit 0

generator/source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 18aa6d83774d514da479d73a4beb864cd4220231

0 commit comments

Comments
 (0)