summaryrefslogtreecommitdiff
path: root/packaging/SGI/spec.pl
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1997-10-31 17:33:04 +0000
committerHerb Lewis <herb@samba.org>1997-10-31 17:33:04 +0000
commitbc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51 (patch)
tree7a1598b1f6fcd73029af1d266e1d08f05fdb880a /packaging/SGI/spec.pl
parent4400805208722e3679809a0ca53c2285e45212ca (diff)
downloadsamba-bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51.tar.gz
samba-bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51.tar.bz2
samba-bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51.zip
Update file for automatically generating a release
(This used to be commit 01df21c22d567a0cc6d69a03fd3246dcfd92217d)
Diffstat (limited to 'packaging/SGI/spec.pl')
-rwxr-xr-xpackaging/SGI/spec.pl76
1 files changed, 76 insertions, 0 deletions
diff --git a/packaging/SGI/spec.pl b/packaging/SGI/spec.pl
new file mode 100755
index 0000000000..93aa8632d9
--- /dev/null
+++ b/packaging/SGI/spec.pl
@@ -0,0 +1,76 @@
+#!/usr/bin/perl
+
+# This perl script generates the samba.spec file based on the version
+# information in the version.h file in the source tree
+
+open (VER,'../../source/version.h');
+($_ = <VER>) =~ s/"//g;
+close (VER);
+@foo = split(' ');
+splice(@foo,0,2);
+$_ = $foo[0];
+
+# create the package name
+$vername = " id \"Samba Version ".$_."\"\n";
+
+#create the subsystem version numbers
+if (/alpha/) {
+ $_ =~ s/alpha/.00./;
+}
+elsif (/p/) {
+ $_ =~ s/p/./;
+ $_ .= '.00';
+}
+($v1,$v2,$v3,$v4,$v5) = split('\.');
+$vernum = sprintf " version %02d%02d%02d%02d%02d\n",$v1,$v2,$v3,$v4,$v5;
+
+# generate the samba.spec file
+open(SPEC,">samba.spec");
+print SPEC "product samba\n";
+print SPEC $vername;
+print SPEC " image sw\n";
+print SPEC " id \"Samba Execution Environment\"\n";
+print SPEC $vernum;
+print SPEC " order 0\n";
+print SPEC " subsys base default\n";
+print SPEC " id \"Samba Execution Environment\"\n";
+print SPEC " replaces fw_samba.sw.base 0 9999999999\n";
+print SPEC " replaces fw_samba.sw.samba 0 9999999999\n";
+print SPEC " exp samba.sw.base\n";
+print SPEC " endsubsys\n";
+print SPEC " endimage\n";
+print SPEC " image man\n";
+print SPEC " id \"Samba Online Documentation\"\n";
+print SPEC $vernum;
+print SPEC " order 1\n";
+print SPEC " subsys manpages default\n";
+print SPEC " id \"Samba Man Page\"\n";
+print SPEC " replaces fw_samba.man.manpages 0 9999999999\n";
+print SPEC " replaces fw_samba.man.samba 0 9999999999\n";
+print SPEC " exp samba.man.manpages\n";
+print SPEC " endsubsys\n";
+print SPEC " subsys doc default\n";
+print SPEC " id \"Samba Documentation\"\n";
+print SPEC " replaces fw_samba.man.doc 0 9999999999\n";
+print SPEC " exp samba.man.doc\n";
+print SPEC " endsubsys\n";
+print SPEC " subsys relnotes default\n";
+print SPEC " id \"Samba Release Notes\"\n";
+print SPEC " replaces fw_samba.man.relnotes 0 9999999999\n";
+print SPEC " exp samba.man.relnotes\n";
+print SPEC " endsubsys\n";
+print SPEC " endimage\n";
+print SPEC " image src\n";
+print SPEC " id \"Samba Source Code\"\n";
+print SPEC $vernum;
+print SPEC " order 2\n";
+print SPEC " subsys samba\n";
+print SPEC " id \"Samba Source Code\"\n";
+print SPEC " replaces fw_samba.src.samba 0 9999999999\n";
+print SPEC " exp samba.src.samba\n";
+print SPEC " endsubsys\n";
+print SPEC " endimage\n";
+print SPEC "endproduct\n";
+close SPEC;
+
+print "\nsamba.spec file has been created\n\n";