File: get-orig-source

package info (click to toggle)
z88 13.0.0+dfsg2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 107,792 kB
  • sloc: ansic: 45,530; sh: 71; makefile: 14
file content (31 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -ex

VERSIONDFSG=13.0.0+dfsg2

wget -c http://user.cs.tu-berlin.de/~domibel/z88/z88130.tar.gz
mkdir z88-${VERSIONDFSG}
cd z88-${VERSIONDFSG}
tar -xzf ../z88130.tar.gz     # file doesn't contain folder
chmod 644 *
mkdir html
mv *.htm html
mv *.gif html
mv *.jpg html
mkdir src
mv *.c src/
mv *.h src/
mkdir data
mv b* data/
mv z88x.dxf data/
mv z88*txt data/
mkdir oldmake
mv *mk* oldmake
mv COMP* oldmake
mv z88.fcd.linux oldmake/
cd ..
echo "Creating orig tarball."
GZIP=-9 tar -czf z88_${VERSIONDFSG}.orig.tar.gz z88-${VERSIONDFSG}/
echo "Removing extracted directory."
rm -rf z88-${VERSIONDFSG}
rm z88130.tar.gz