Changeset cd4466f for common/libs/func_blfs_deps
- Timestamp:
- 12/11/2006 06:21:16 PM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 5932971
- Parents:
- de22e80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_blfs_deps
rde22e80 rcd4466f 145 145 # Drop in the name of the target on a new line, and the previous target 146 146 # as a dependency. Also call the echo_message function. 147 CHROOT_wrt_target "${this_script}" "$PREV" 147 if [ "$PROGNAME" = "clfs2" ]; then 148 LUSER_wrt_target "${this_script}" "$PREV" 149 else 150 CHROOT_wrt_target "${this_script}" "$PREV" 151 fi 148 152 149 153 # Insert instructions for unpacking the package and changing directories 150 154 # DocBook-XML is a zip, the build script will handle that. 151 [[ ! "$name" = "docbook-xml" ]] && CHROOT_Unpack "$pkg_tarball" 155 if [ "$PROGNAME" = "clfs2" ]; then 156 [[ ! "$name" = "docbook-xml" ]] && LUSER_wrt_unpack "$pkg_tarball" 157 else 158 [[ ! "$name" = "docbook-xml" ]] && CHROOT_Unpack "$pkg_tarball" 159 fi 152 160 153 161 # Run the script. 154 CHROOT_wrt_RunAsRoot "$file" 162 if [ "$PROGNAME" = "clfs2" ]; then 163 LUSER_wrt_RunAsUser "${file}" 164 else 165 CHROOT_wrt_RunAsRoot "$file" 166 fi 155 167 156 168 # Remove the build directory(ies) except if the package build fails. 157 [[ ! "$name" = "docbook-xml" ]] && CHROOT_wrt_RemoveBuildDirs "$name" 169 if [ "$PROGNAME" = "clfs2" ]; then 170 [[ ! "$name" = "docbook-xml" ]] && LUSER_RemoveBuildDirs "$name" 171 else 172 [[ ! "$name" = "docbook-xml" ]] && CHROOT_wrt_RemoveBuildDirs "$name" 173 fi 158 174 159 175 # Touch the tracking file. … … 163 179 * ) pkg_ver=$(echo $pkg_tarball | sed -e 's/.tar.*//;s/.tgz//;s/.zip//') ;; 164 180 esac 165 echo "\$(tab_)@touch $TRACKING_DIR/$pkg_ver" >> $MKFILE.tmp 181 if [ "$PROGNAME" = "clfs2" ]; then 182 echo -e "\t@touch \$(MOUNT_PT)$TRACKING_DIR/$pkg_ver" >> $MKFILE.tmp 183 else 184 echo -e "\t@touch $TRACKING_DIR/$pkg_ver" >> $MKFILE.tmp 185 fi 166 186 167 187 # Include a touch of the target name so make can check
Note:
See TracChangeset
for help on using the changeset viewer.