File: testcode21.sh

package info (click to toggle)
debmake 5.1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 696 kB
  • sloc: python: 2,175; sh: 238; makefile: 30
file content (19 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e
# tar.xz with project-ver/
LC_ALL=C.UTF-8
export LC_ALL

# non-native from archive.xz using -a
PROJECT=foo-2.1
rm -f ${PROJECT}*.tar.?z
rm -rf ${PROJECT}
mkdir ${PROJECT}
echo "DUMMY ${PROJECT}" > ${PROJECT}/dummy-${PROJECT}
tar --xz -cvf ${PROJECT}.tar.xz ${PROJECT}
#rm -rf ${PROJECT}
# now you need -y
debmake -x0 -y ${PROJECT}.tar.xz
cd ${PROJECT} || exit 1
test -x debian/rules
cd .. || exit 1