File: ziplinuxsource.sh

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (32 lines) | stat: -rwxr-xr-x 656 bytes parent folder | download
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
32
#!/bin/bash
# ziplinuxsource.sh
# create a zip file of the trunk source for uploading to sourceforge

make clean

# rename files we do not want to incluse in the tar
for file in *.sqlite3 *.kbs *.bin
do
	mv $file $file.donttar
	echo Moved $file to $file.donttar
done

tar \
	-cvzf ../basic256_n.n.nx.tgz \
	--exclude='.*' \
	--exclude='*.donttar' \
	--exclude='*~' \
	--exclude='BASIC256' \
	--exclude='debug' \
	--exclude='tmp' \
	--exclude='release' \
	*

# name all of the files in the . folde rback to their previous names
for file in *.donttar
do
	mv $file `basename $file .donttar`
	echo Moved $file back to original `basename $file .donttar`
done