File: testcode2.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 (18 lines) | stat: -rwxr-xr-x 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e
# tar.xz w/o project-ver/
LC_ALL=C.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 -x0 ${PROJECT}.tar.xz
cd ${PROJECT} || exit 1
test -x debian/rules
cd .. || exit 1