File: distro_from_svn.sh

package info (click to toggle)
gtkwave 3.3.98-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 10,200 kB
  • sloc: ansic: 136,610; sh: 4,558; cpp: 2,156; java: 634; makefile: 310; lex: 236; xml: 194; perl: 93; objc: 68; csh: 28; tcl: 25
file content (10 lines) | stat: -rwxr-xr-x 383 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
echo "Cleaning out SVN directories..."
find . | grep '\.svn' | tac | awk '{print "rm -rf "$0}' | sh

echo "Making distribution tarball from SVN directory..."
cd ../
cat ./gtkwave3/configure.ac | grep AC_INIT | awk '{print $2}' | sed 's/,//' | \
	awk '{print "mv gtkwave3 gtkwave-"$0" ; tar cvf gtkwave-"$0".tar gtkwave-"$0" ; gzip -9 gtkwave-"$0".tar"}' | sh

echo "Done!"