Browse Source

use checkout for upstream sources

Alf Gaida 3 years ago
parent
commit
610a6b6b44
2 changed files with 22 additions and 40 deletions
  1. 10
    32
      .gitignore
  2. 12
    8
      debian/rules

+ 10
- 32
.gitignore View File

@@ -1,32 +1,10 @@
1
-CMakeLists.txt
2
-cmake/
3
-docs/
4
-img/
5
-localize/
6
-translations/
7
-src/
8
-screengrab.desktop
9
-screengrab.ico
10
-screengrab.qrc
11
-screengrab.rc
12
-AUTHORS
13
-COPYING
14
-README.md
15
-
16
-#orig sources (git)
17
-.xyz
18
-
19
-# quilt crap
20
-.pc/
21
-
22
-# debian foo
23
-debian/README.source
24
-debian/files
25
-debian/patches/
26
-debian/screengrab.debhelper.log
27
-debian/screengrab.substvars
28
-debian/screengrab/
29
-
30
-# gnu foo
31
-obj-x86_64-linux-gnu/
32
-
1
+# upstream sources
2
+checkout
3
+
4
+# debian build files
5
+/*.build
6
+/*.changes
7
+/*.deb
8
+/*.dsc
9
+/*.tar.gz
10
+/*.upload

+ 12
- 8
debian/rules View File

@@ -9,14 +9,18 @@ override_dh_install:
9 9
 	dh_install
10 10
 
11 11
 maintainer-clean:
12
-	dh_clean
13
-	$(RM) -r $$(ls | grep -v debian )
14
-	$(RM) -r .pc
15
-	$(RM) -r .xyz
12
+	$(RM) -r checkout
13
+	$(RM) *.build
14
+	$(RM) *.changes
15
+	$(RM) *.deb
16
+	$(RM) *.dsc
17
+	$(RM) *.tar.gz
18
+	$(RM) *.upload
16 19
 
17 20
 get-orig-source: maintainer-clean
18
-	git clone --depth=1 git@github.com:doomer/screengrab.git -b 1.x .xyz; \
19
-	cd .xyz; \
20
-	cp -a $$(ls | grep -v debian ) ..; \
21
+	git clone --depth=1 git@github.com:doomer/screengrab.git -b 1.x checkout; \
22
+	cd checkout; \
23
+	cp -a ../debian .; \
21 24
 	echo "";\
22
-	git log | head
25
+	git log | head; \
26
+	echo ""

Loading…
Cancel
Save