File: import

package info (click to toggle)
arduino 2%3A1.8.19%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,960 kB
  • sloc: java: 26,464; python: 8,872; cpp: 3,573; xml: 1,237; sh: 551; perl: 90; ansic: 89; makefile: 53
file content (21 lines) | stat: -rwxr-xr-x 484 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
#  import, script for importing new upstream tarball
#
if [ -z "${1}" ] ; then
	echo "E:Missing tarball filename"
	echo "I:Usage: ${0} upstreamtarball"
	exit 1
fi
if [ -d .git -a -d debian ] ; then
	# clean the current directory
	find . -maxdepth 1 | grep -v -e ^.$ -e ^./.git$ -e ^./debian$ \
	| xargs rm -rf
else
	echo "E: You are not in the expected directory"
	exit 1
fi
echo "I: Untar of ${1} in progress ..."
tar xf ${1} --strip-components=1
echo "I: Done."
# l l