Changeset 1130 for obs/obs-service-dsc_filelist/usr
- Timestamp:
- Dec 21, 2012, 2:34:56 PM (12 years ago)
- Location:
- obs/obs-service-dsc_filelist/usr/lib/obs/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
obs/obs-service-dsc_filelist/usr/lib/obs/service/dsc_filelist
r1129 r1130 5 5 # 6 6 # (C) 2012 by <joerg.steffens@dass-it.de> 7 # 7 # 8 8 # This program is free software; you can redistribute it and/or 9 9 # modify it under the terms of the GNU General Public License … … 42 42 43 43 44 45 get_version_from_file () {46 if [ -z "$MYVERSION" ]; then47 MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).tar.*,\1,p" | head -n 1`48 fi49 if [ -z "$MYVERSION" ]; then50 MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).tgz$,\1,p" | head -n 1`51 fi52 if [ -z "$MYVERSION" ]; then53 MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).tbz2$,\1,p" | head -n 1`54 fi55 if [ -z "$MYVERSION" ]; then56 MYVERSION=`ls -1t | sed -n "s,$BASENAME.*-\([0123456789].*\).zip$,\1,p" | head -n 1`57 fi58 if [ -z "$MYVERSION" ]; then59 echo "ERROR: no version is given and can't get detected automatically"60 exit 161 fi62 echo "Detected version as $MYVERSION"63 }64 65 44 write_files () { 66 45 if [ -z "$FILES" ]; then … … 90 69 done 91 70 } 92 93 #get_version_from_file94 #write_files95 71 96 72 filesize() -
obs/obs-service-dsc_filelist/usr/lib/obs/service/dsc_filelist.service
r1128 r1130 1 <service name=" set_file_info">1 <service name="dsc_filelist"> 2 2 <summary>DSC file: updates source files info in DSC file</summary> 3 3 <description>This service updates the files info in a DSC file according to the existing files.
Note:
See TracChangeset
for help on using the changeset viewer.