make the debian packaging script quite generic
Now I'm going to copy it to all other projects. And package them like there was no tomorrow.
This commit is contained in:
		
							parent
							
								
									467cfd35f0
								
							
						
					
					
						commit
						2e0d738431
					
				|  | @ -1,17 +1,13 @@ | ||||||
| #!/bin/sh | #!/bin/bash | ||||||
| 
 | 
 | ||||||
| # run this in source directory to easily make the debian package&pals. | # Run this in source directory to easily make the debian package&pals. Be sure | ||||||
| # be sure the source is configured before running. | # the source is ./configured before running. Latest upstream version ($V here) | ||||||
| 
 | # in debian/changelog must be equal to the version listed in configure.ac. | ||||||
| if [ -z "$1" ] ; then |  | ||||||
| 	echo "usage: $0 <version>" |  | ||||||
| 	echo "e.g.: $0 0.1.2" |  | ||||||
| 	exit 1 |  | ||||||
| fi |  | ||||||
| 
 | 
 | ||||||
| OUT_DIR=debian-packages | OUT_DIR=debian-packages | ||||||
| N="codecrypt" | N=`dpkg-parsechangelog --show-field Source` | ||||||
| V="$1" | VD=`dpkg-parsechangelog --show-field Version` | ||||||
|  | V="${VD%-*}" | ||||||
| NV="$N-$V" | NV="$N-$V" | ||||||
| DIST="$NV.tar.gz" | DIST="$NV.tar.gz" | ||||||
| ORIG="$OUT_DIR/${N}_$V.orig.tar.gz" | ORIG="$OUT_DIR/${N}_$V.orig.tar.gz" | ||||||
|  | @ -25,4 +21,4 @@ cd "$OUT_DIR/$NV" && \ | ||||||
| debuild && \ | debuild && \ | ||||||
| cd .. && \ | cd .. && \ | ||||||
| rm -r "$NV" && \ | rm -r "$NV" && \ | ||||||
| echo "ready?" | echo "READY?" #z80? | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue