add files and scripts for building
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/build
|
||||
/release
|
0
DEBIAN/conffiles
Normal file
0
DEBIAN/conffiles
Normal file
12
DEBIAN/control
Normal file
12
DEBIAN/control
Normal file
@@ -0,0 +1,12 @@
|
||||
Package: shorter
|
||||
Source: shorter
|
||||
Version: 0.1
|
||||
Architecture: all
|
||||
Maintainer: markus <markus@obermui.de>, 6543 <6543@obermui.de>
|
||||
Installed-Size: 8,0K
|
||||
Depends: sed (>= 4.2), bash (>= 4.3)
|
||||
Suggests:
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Homepage: https://git.altinsystems.de/markus/shorter
|
||||
Description: Bennent Serien in einheitliches Format um.
|
1
DEBIAN/postinst
Executable file
1
DEBIAN/postinst
Executable file
@@ -0,0 +1 @@
|
||||
#!/bin/sh
|
1
DEBIAN/postrm
Executable file
1
DEBIAN/postrm
Executable file
@@ -0,0 +1 @@
|
||||
#!/bin/sh
|
1
DEBIAN/preinst
Executable file
1
DEBIAN/preinst
Executable file
@@ -0,0 +1 @@
|
||||
#!/bin/sh
|
1
DEBIAN/prerm
Executable file
1
DEBIAN/prerm
Executable file
@@ -0,0 +1 @@
|
||||
#!/bin/sh
|
3
script/get_version.sh
Executable file
3
script/get_version.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
grep '@version ' src/shorter | cut -d " " -f 2
|
19
script/set_version.sh
Executable file
19
script/set_version.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
version=$1
|
||||
date=`date +%Y-%m-%d`
|
||||
|
||||
[ -f "src/shorter" ] && {
|
||||
|
||||
version_sed=`echo $version | sed 's/\./\\./g'`
|
||||
|
||||
#nummer
|
||||
sed -i "/#@version\ /c\#@version\ $version_sed" src/remaster.sh
|
||||
|
||||
#datum
|
||||
sed -i "/#@date\ /c\#@date\ $date" src/remaster.sh
|
||||
}
|
||||
|
||||
[ -f "DEBIAN/control" ] && {
|
||||
sed -i "/Version:\ /c\Version:\ $version_sed" "DEBIAN/control"
|
||||
}
|
Reference in New Issue
Block a user