File tree 3 files changed +75
-38
lines changed
3 files changed +75
-38
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ source ./dist-common.sh
4
+
5
+ shift ; shift
6
+ darcs_options=" $@ "
7
+
8
+ echo Running \`\` darcs dist ${darcs_options} -d " $name " \'\' ...
9
+ darcs dist ${darcs_options} -d " $name "
10
+
11
+ if [[ " $format " != gz ]]
12
+ then
13
+ echo Decompressing...
14
+ gunzip -v " ${archive} .gz"
15
+
16
+ dist_compress
17
+ fi
18
+
19
+ dist_done
Original file line number Diff line number Diff line change
1
+ default_format=bz2
2
+
3
+ if [[ " $1 " == " DEV" ]]
4
+ then
5
+ suffix=" dev` date +%Y%m%d.%H.%M` "
6
+ else
7
+ suffix=" $1 "
8
+ fi
9
+ name=" rest/dist/minifileman-${suffix} "
10
+ archive=" ${name} .tar"
11
+
12
+ if [[ " $2 " == " " ]]
13
+ then
14
+ format=" $default_format "
15
+ else
16
+ format=" $2 "
17
+ fi
18
+
19
+ case " $format " in
20
+ gz)
21
+ compressor=gzip
22
+ ;;
23
+ bz2)
24
+ compressor=bzip2
25
+ ;;
26
+ lzma)
27
+ compressor=lzma
28
+ ;;
29
+ * )
30
+ echo The compression format $format isn\' t supported.
31
+ exit 1
32
+ esac
33
+
34
+ dist_compress (){
35
+ echo Compressing...
36
+ ${compressor} -9v " ${archive} "
37
+ }
38
+
39
+ dist_done (){
40
+ echo Done.
41
+ }
42
+
43
+ echo Creating distribution tarball \`\` ${archive} .${format} \'\' ...
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/sh
2
2
3
- if [[ " $1 " == " DEV" ]]
4
- then
5
- suffix=" dev` date +%Y%m%d.%H.%M` "
6
- else
7
- suffix=" $1 "
8
- fi
9
- archive=" rest/dist/minifileman-${suffix} .tar"
10
-
11
- if [[ " $2 " == " " ]]
12
- then
13
- format=" bz2"
14
- else
15
- format=" $2 "
16
- fi
17
- case " $format " in
18
- gz)
19
- compressor=gzip
20
- ;;
21
- bz2)
22
- compressor=bzip2
23
- ;;
24
- lzma)
25
- compressor=lzma
26
- ;;
27
- * )
28
- echo The compression format $format isn\' t supported.
29
- exit 1
30
- esac
31
-
32
- echo Creating distribution tarball ${archive} .${format} ...
3
+ source ./dist-common.sh
33
4
34
5
echo Tarring...
35
- tar -cvf ${archive} \
6
+ tar -cvf " ${archive} " \
36
7
doc/{LICENSE,TODO}\
37
8
icons/minifileman{,-notext}.svg\
9
+ src/minifileman.asd\
38
10
src/config{,-test}.lisp\
39
11
src/ltk-ext.lisp\
40
12
src/gui-lib.lisp\
41
- src/helpers.lisp\
13
+ src/path-entry.lisp\
14
+ src/utils.lisp\
42
15
src/load.lisp\
43
16
src/packages.lisp\
44
- src/macro-helpers .lisp\
17
+ src/macro-utils .lisp\
45
18
src/pathnames.lisp\
46
19
src/filesystem.lisp\
47
20
src/minifileman.lisp\
48
- dist.sh
21
+ portage/app-misc/minifileman/minifileman-0.1.0.ebuild\
22
+ dist.sh\
23
+ darcs-dist.sh\
24
+ dist-common.sh
49
25
50
- echo Compressing...
51
- ${compressor} -9v ${archive}
26
+ dist_compress
52
27
53
- echo Done.
28
+ dist_done
You can’t perform that action at this time.
0 commit comments