File: testcode2.sh

package info (click to toggle)
debmake 5.0.1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 792 kB
  • sloc: python: 2,731; sh: 214; makefile: 30
file content (18 lines) | stat: -rwxr-xr-x 406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# check if debmake works as expected
LC_ALL=en_US.UTF-8
export LC_ALL

# non-native from archive.xz using -a
PROJECT=foo-2.0
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}
debmake -a ${PROJECT}.tar.xz 2>&1
cd ${PROJECT} || exit 1
test -x debian/rules
cd .. || exit 1