@@ -19,100 +19,29 @@ echo "dist: ${DIST}"
1919
2020WEBROOT=/var/www/rpm
2121case ${DIST} in
22- fc30)
23- RPMDIR=" ${WEBROOT} /fedora/30/${ARCH} "
24- SRPMDIR=" ${WEBROOT} /fedora/30/SRPMS"
25- DIST=' fedora'
26- RELEASE=' 30'
27- ;;
28- fc31)
29- RPMDIR=" ${WEBROOT} /fedora/31/${ARCH} "
30- SRPMDIR=" ${WEBROOT} /fedora/31/SRPMS"
31- DIST=' fedora'
32- RELEASE=' 31'
33- ;;
34- fc32)
35- RPMDIR=" ${WEBROOT} /fedora/32/${ARCH} "
36- SRPMDIR=" ${WEBROOT} /fedora/32/SRPMS"
37- DIST=' fedora'
38- RELEASE=' 32'
39- ;;
40- fc33)
41- RPMDIR=" ${WEBROOT} /fedora/33/${ARCH} "
42- SRPMDIR=" ${WEBROOT} /fedora/33/SRPMS"
43- DIST=' fedora'
44- RELEASE=' 33'
45- ;;
46- fc34)
47- RPMDIR=" ${WEBROOT} /fedora/34/${ARCH} "
48- SRPMDIR=" ${WEBROOT} /fedora/34/SRPMS"
49- DIST=' fedora'
50- RELEASE=' 34'
51- ;;
52- fc35)
53- RPMDIR=" ${WEBROOT} /fedora/35/${ARCH} "
54- SRPMDIR=" ${WEBROOT} /fedora/35/SRPMS"
55- DIST=' fedora'
56- RELEASE=' 35'
57- ;;
58- fc36)
59- RPMDIR=" ${WEBROOT} /fedora/36/${ARCH} "
60- SRPMDIR=" ${WEBROOT} /fedora/36/SRPMS"
61- DIST=' fedora'
62- RELEASE=' 36'
63- ;;
64- fc37)
65- RPMDIR=" ${WEBROOT} /fedora/37/${ARCH} "
66- SRPMDIR=" ${WEBROOT} /fedora/37/SRPMS"
67- DIST=' fedora'
68- RELEASE=' 37'
69- ;;
70- fc38)
71- RPMDIR=" ${WEBROOT} /fedora/38/${ARCH} "
72- SRPMDIR=" ${WEBROOT} /fedora/38/SRPMS"
73- DIST=' fedora'
74- RELEASE=' 38'
75- ;;
76- fc39)
77- RPMDIR=" ${WEBROOT} /fedora/39/${ARCH} "
78- SRPMDIR=" ${WEBROOT} /fedora/39/SRPMS"
79- DIST=' fedora'
80- RELEASE=' 39'
81- ;;
82- fc40)
83- RPMDIR=" ${WEBROOT} /fedora/40/${ARCH} "
84- SRPMDIR=" ${WEBROOT} /fedora/40/SRPMS"
85- DIST=' fedora'
86- RELEASE=' 40'
87- ;;
88- fc41)
89- RPMDIR=" ${WEBROOT} /fedora/41/${ARCH} "
90- SRPMDIR=" ${WEBROOT} /fedora/41/SRPMS"
91- DIST=' fedora'
92- RELEASE=' 41'
93- ;;
94- fc42)
95- RPMDIR=" ${WEBROOT} /fedora/42/${ARCH} "
96- SRPMDIR=" ${WEBROOT} /fedora/42/SRPMS"
97- DIST=' fedora'
98- RELEASE=' 42'
99- ;;
100- el7)
101- RPMDIR=" ${WEBROOT} /epel/7/${ARCH} "
102- SRPMDIR=" ${WEBROOT} /epel/7/SRPMS"
103- DIST=' epel'
104- RELEASE=' 7'
105- ;;
106- el8)
107- RPMDIR=" ${WEBROOT} /epel/8/${ARCH} "
108- SRPMDIR=" ${WEBROOT} /epel/8/SRPMS"
109- DIST=' epel'
110- RELEASE=' 8'
111- ;;
112- * )
113- echo " Unknown distribution ${DIST} " 1>&2
114- exit 1
115- ;;
22+ fc[0-9]* )
23+ # strip the 'fc' prefix
24+ RELEASE=$( echo " ${DIST} " | sed ' s/^fc//' )
25+ DIST=fedora
26+ RPMDIR=" ${WEBROOT} /${DIST} /${RELEASE} /${ARCH} "
27+ SRPMDIR=" ${WEBROOT} /${DIST} /${RELEASE} /SRPMS"
28+ ;;
29+ el7)
30+ RPMDIR=" ${WEBROOT} /epel/7/${ARCH} "
31+ SRPMDIR=" ${WEBROOT} /epel/7/SRPMS"
32+ DIST=' epel'
33+ RELEASE=' 7'
34+ ;;
35+ el8)
36+ RPMDIR=" ${WEBROOT} /epel/8/${ARCH} "
37+ SRPMDIR=" ${WEBROOT} /epel/8/SRPMS"
38+ DIST=' epel'
39+ RELEASE=' 8'
40+ ;;
41+ * )
42+ echo " Unknown distribution ${DIST} " 1>&2
43+ exit 1
44+ ;;
11645esac
11746
11847echo " RPMDIR: ${RPMDIR} "
0 commit comments